Easy Sample VB Scripts - Msgbox

MSGBOX:
Using msgbox to display a dialog box on screen and working out what button was pressed

result = msgbox ("Today's Date is: " &date , 1, "What's Today's Date ?" )
 If result = 1 Then

  msgbox ("You clicked 'OK' Which has a return value of " & result)
 else
  msgbox ("You clicked 'Cancel' Which has a return value of " & result)

 End If

Popular Posts