返回列表 上一主題 發帖

[發問] 如何禁止使用VBA按鈕

回復 6# missbb
試試看
  1. aa = InputBox("請輸入密碼")
  2.     pass = "12345"
  3.     If aa = pass Then
  4.         CommandButton1.Enabled = False
  5.     ElseIf aa <> pass Then
  6.         MsgBox "錯誤輸入"
  7.         CommandButton1.Enabled = True
  8.     End If
複製代碼
感恩的心......(在麻辣家族討論區.用心學習會有進步的)
但資源無限,後援有限,  一天1元的贊助,人人有能力.

TOP

        靜思自在 : 為自己找藉口的人永遠不會進步。
返回列表 上一主題