Display a popup message.

      MsgBox(prompt [, buttons ] [, title ]
        [, helpfile ] [, context ] )

   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.

A system beep might also be produced, this is determined by the button style/icon (acMsgBoxStyle) if no button icon is added then no system beep will be produced.


MsgBox Prompt:="You must enter a valid date.", _
Buttons:=vbMsgBoxHelpButton, _
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 1999-2015
Some rights reserved