A quick one: Start a new line in a message box?

  • Thread starter Thread starter Guest
  • Start date Start date
In code:
MsgBox "Line1" & vbCrLf & "Line 2"

In contexts where the constant is available, spell out the Carriage Return
and Line Feed characters:
"Line1" & Chr(13) & Chr(10) & "Line2"
 
How about leaving a space between two lines? Like


Hello, my name is John

Pleased to meet you!
 
"Hello, my name is John" & vbCrLf & vbCrLf & "Pleased to meet you!"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top