line break in a message box

  • Thread starter Thread starter jnew
  • Start date Start date
J

jnew

Greetings,

This may be simple, but I can't find an answer in the
help system. My message box prompt will consist of two
sentences. I'd like to display each sentence on its own
line. How do I code in the line feed and carriage return?

jn
 
Try this:

MsgBox "This is the first line. " & Chr(13) & Chr(10) & "This is the
second line."


hth,
 
Msgbox "FirstSentence" & VbCrLf & "SecondSentence"

Will look like:
FirstSentence
SecondSentence

Msgbox "FirstSentence" & VbCrLf & & VbCrLf & "SecondSentence"

Will look like:
FirstSentence

SecondSentence
 
Back
Top