作者nak54mn (大王页)
看板Visual_Basic
标题[VBA ] 密码登入问题
时间Mon Mar 23 00:33:41 2009
我刚学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
1F:→ MOONRAKER:看你课本回圈的部份 03/23 01:53
2F:推 cutejay:省麻烦用 goto 吧 03/23 08:26
3F:→ MOONRAKER:要养成好习惯 03/23 09:46
4F:推 ClubT:用Do...Loop 03/23 14:40