返回列表 上一主題 發帖

[發問] CommandButton1_Click()內如果有CommandButton1是否可以寫成Me?

回復 10# av8d
表單中有  CommandButton1 , Label1 , TextBox1
表單程式碼
  1. Option Explicit
  2. Dim AR()
  3. Private Sub CommandButton1_Click()
  4.     MsgBox Join(AR, Chr(10))
  5. End Sub
  6. Private Sub UserForm_Initialize()
  7.     AR = Array(Label1, "甲", TextBox1, 0)
  8.    Label1.Caption = "THE_Caption"
  9. End Sub
複製代碼

TOP

        靜思自在 : 原諒別人就是善待自己。
返回列表 上一主題