The information in this article applies to:
SUMMARYIn Microsoft Word, you can use the MsgBox command to post a message or the value of a variable. This article discusses how to display more than one line of text within a message box. MORE INFORMATION
To post more than one line of information, you use character 13 or
"Chr$(13)", to insert a paragraph mark within the message box.
Assuming the contents of the variables equate to Red, Green, and Blue, the
above macro command results in a message box that displays the following
lines of text:
RedIf the text you want to display is of numeric value, you can use the Str$() function to return the string representation. For example, the following macro posts the numbers 1 and 2, on seperate lines, in a message box:
The following macro command demonstrates the use of character 13 to display
two lines of literal text in a message box:
This macro command results in a message box that displays the following
lines of text:
Line One of the message box. REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, page 257 Additional query words: new line Chr$ MsgBox message box
Keywords : kbmacro wordnt kbmacroexample word8 kbwordvba winword ntword macword word6 winword2 word7 word95 |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |