 |
Purpose
Displays a modal message box.
Because this is a modal message box, processing for this application is suspended until the user responds by clicking a button in the message box. At that time, processing continues with the line following the MsgBox command.
Use the MsgBox Response function to tell the application which button the user clicked.
Syntax
MsgBox ("MsgBoxString" [, MsgBoxButtons] [, "MsgBoxTitle"])
MsgBoxString |
The string to appear in the message box. MsgBox strings are truncated at 509 characters. |
MsgBoxButtons |
Which buttons you want in the message box. If you don't specify message box buttons, just the OK button appears. Valid values are: |
|
fcOKOnly |
OK button only |
|
fcOKCancel |
OK and Cancel buttons |
|
fcYesNo |
Yes and No buttons |
|
fcYesNoCancel |
Yes, No, and Cancel buttons |
MsgBoxTitle |
The title of your message box. If you don't specify a title, none appears. |
Example
MsgBox ("Would you like to save changes?", FCYesNoCancel, "Save")
|  |