





























Daniel Stefan BLOG - 2009 - www.da4design.com - Stefan Daniel BLOG
MsgBox "Message",options,titleThe first argument is the message to be displayed. The second (optional) controls the appearance and behaviour of the dialog box, and the third (also optional) specifies the text to be placed in the title bar of the dialog box.
vbOKOnly OK
vbOKCancel OK, Cancel
vbYesNoCancel Yes, No, Cancel
vbYesNo Yes, No
vbCritical Stop
vbQuestion Question mark
vbExclamation Exclamation point
vbInformation Information
vbDefaultButton1 1st button is default
vbDefaultButton2 2nd button is default
vbDefaultButton3 3rd button is default
vbDefaultButton4 4th button is default
vbOK OK
vbCancel Cancel
vbYes Yes
vbNo No
MsgBox "Click OK to continue"
MsgBox "Fatal Error", vbCritical
MsgBox "Click Yes to continue, No to stop", vbQuestion + vbYesNo
MsgBox "Click Yes to continue, No to stop", vbQuestion+vbDefaultButton2+vbYesNo
MsgBox "Program hasn't worked", vbExclamation
MsgBox "Program ran successfully", vbInformation, "All singing all Dancing program Version 1.3"