Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes = "6"
no = "7"
cancel = "2"
answer = MsgBox ("continue?", VBYesNoCancel + icon, title)
If answer = yes Then
... the rest of the code will execute if answer is yes
End If
i think Wscript.Quit commands anywhere else other than the logical end of the script (to allow for a return code) is bad form
Function InputUserID()
strfuser = InputBox("Enter user ID. Example: 900jsmith" , "Enter Username")
If strfuser = False Then Call Quit(1)
If strfuser = "" Then Call Quit(2)
End Function
Sub Quit(Error1)
If Error1 = "1" Then MsgBox("Canceled")
If Error1 = "2" Then MsgBox("Enter and Valid User ID.")
WScript.Quit
End Sub