Irish Rover
New member
- Local time
- Today, 14:06
- Joined
- Dec 3, 2012
- Messages
- 3
Greetings,
I hato to ask such a basic question to such an esteemed group, but I am new at this and stuck alerady. Can someone point out why this simple exercise will not run. I keep getting "Syntax Error.
Sub GuessName()
Msg = "Is Your Name " & Application.UserName & "?" _
Ans = MsgBox(Msg, vbYesNo) _
If Ans = vbNo Then MsgBox "Oh, Never Mind." _
If Ans = vbYes Then MsgBox "I must be psychic!"
End Sub
Thank You!
Irish Rover
I hato to ask such a basic question to such an esteemed group, but I am new at this and stuck alerady. Can someone point out why this simple exercise will not run. I keep getting "Syntax Error.
Sub GuessName()
Msg = "Is Your Name " & Application.UserName & "?" _
Ans = MsgBox(Msg, vbYesNo) _
If Ans = vbNo Then MsgBox "Oh, Never Mind." _
If Ans = vbYes Then MsgBox "I must be psychic!"
End Sub
Thank You!
Irish Rover