How to Enter a Second Line in a Message Box
Article ID: 124213
Article Last Modified on 10/11/2006
APPLIES TO
- Microsoft Excel 97 Standard Edition
- Microsoft Excel 95 Standard Edition
- Microsoft Excel 5.0 Standard Edition
This article was previously published under Q124213
SUMMARY
In a Microsoft Visual Basic for Applications macro (Sub procedure), to
display more than one line of text in a message box, use the line feed
character (character code 13) as in the following sample code.
REFERENCES
For additional information about getting help with Visual Basic for
Applications, please see the following article in the Microsoft Knowledge
Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 97 XL97 XL7 XL5 XL
Keywords: kbdtacode kbhowto kbprogramming KB124213