我有一个要求输入密码的代码。我需要禁用退出按钮“ X”。这是我正在使用的代码:
Dim myInputBoxVariable As Variant
myInputBoxVariable = Application.InputBox(Prompt:="", Title:="PLEASE ENTER PASSWORD", Default:="Enter Password Here")
'MsgBox "Your input was: " & myInputBoxVariable
If myInputBoxVariable = "False" Then
Exit Sub
End If