Use this Vbs script to get user input from a Vbs Script:
MsgBoxReply = Msgbox("Ready To Visit SpongeBob SquarePants ?",vbYesNo , "SpongeBob SquarePants Rocks !")
If MsgBoxReply = vbYes Then
' Place Your "YES" Code Here And Remove The Line Below.
MsgBox "Ok Then Tell Gary Hello !"
Else
' Place Your "NO" Code Here And Remove The Line Below.
MsgBox "Patrick Will Sure Miss You !"
End If
Note: You can also use the display button value as opposed to the constant for the Yes and No buttons (vbYesNo) in the script above by replacing vbYesNo with the Value of 4 or
as in the Additional Button Display Options listed at the end of this post.
Constant: vbOKOnly
Value: 0
Buttons: OK only
Constant: vbOKCancel
Value: 1
Buttons: OK and Cancel
Constant: vbAbortRetryIgnore
Value: 2
Buttons: Abort, Retry, and Ignore
Constant: vbYesNoCancel
Value: 3
Buttons: Yes, No, and Cancel
Constant: vbYesNo
Value: 4
Buttons: Yes and No
Constant: vbRetryCancel
Value: 5
Buttons: Retry and Cancel
No Comments