[VBA ] 密碼登入問題
我剛學VBA
請問我想要密碼輸入錯誤或按取消時要回到第一個msgbox
要寫甚麼讓它回去阿?
Sub no4LOGIN()
Dim login As Integer
login = MsgBox("Please press OK if you remember your password. Otherwise,
press Cancel.", vbOKCancel )
If login = vbCancel Then
MsgBox "Please comtact Computer Center!"
Else
text1 = InputBox("Enter your password below")
If text1 = "12345" Then
MsgBox "Welcome"
Else
End If
End If
End Sub
我查我的課本也沒寫 先謝謝各位了!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.165.44.187
→
03/23 01:53, , 1F
03/23 01:53, 1F
推
03/23 08:26, , 2F
03/23 08:26, 2F
→
03/23 09:46, , 3F
03/23 09:46, 3F
推
03/23 14:40, , 4F
03/23 14:40, 4F