Display a popup message.
Syntax MsgBox(prompt [, buttons ] [, title ] [, helpfile ] [, context ] ) Key prompt The message to display. up to ~1024 characters. You can separate the lines using a carriage return character Chr(13), a linefeed character Chr(10), or both (Chr(13) & Chr(10)) between each line. buttons The buttons and icons to display acMsgBoxStyle. If you omit buttons, the default is 0 (OK button). title String to display in the title bar. helpfile Optional string expression that identifies the Help file. If helpfile is provided, context must also be provided. context Optional numeric expression that is the Help context number assigned to the appropriate Help topic by the Help author. If context is provided, helpfile must also be provided.
If you specify the helpfile and context arguments when you are using the MsgBox function, you must also include the vbMsgBoxHelpButton built-in constant in the buttons argument so that a Help button will be displayed.
MsgBox Prompt:="You must enter a valid date.", _
HelpFile:=strAppPath & "\sample.chm", _
Context:="2002" Msgbox "You must enter a valid date.", vbOKCancel, "SS64 Demo Msgbox"
“People who know little are usually great talkers, while men who know much say little” ~ Jean Jacques Rousseau
InputBox - Prompt for user input.
Q242889 - MsgBox Function Ignores At Sign (@) Formatting
© Copyright SS64.com 1999-2013
Some rights reserved