The character codes for a carriage return and line feed, Chr(13) & Chr(10).The Visual Basic for Applications constant for a carriage return and line feed, vbCrLf.If you want to force a new line in a message box, you can include one of the following: How do I insert a line break in VBA Messagebox? When you use vbCrLf within two string or values, like, you have in the following code, it inserts a new line. vbCrLf constant stands for Carriage Return and Line feed, which means Cr moves the cursor to the starting of the line, and Lf moves the cursor down to the next line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |