ACC: How to Force a New Line in a MsgBox MessageID: Q90810
|
Moderate: Requires basic macro, coding, and interoperability skills.
If you want to force a new line in a message box, you can enter the
message as a string formula and concatenate a carriage return/line feed,
Chr$(13) & Chr$(10), in the message where you want to start a new line.
You can also use this technique to provide multiple lines in a text box on
a form.
For example, if you had the message
Notice: This is an Important Message!
Notice:
This is an Important Message!
Action
------
MsgBox
Message: ="Notice:" & Chr(13) & Chr(10) & "This is an Important Message!"
MsgBox "Notice:" & Chr(13) &Chr(10) & "This is an Important Message!"
MsgBox "Notice:" & vbCrLf & "This is an Important Message!"
Additional query words: multiline
Keywords : kbusage McrArg
Version : 1.0 1.10 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 11, 1999