Can you make paragraphs in a message box?

  • Thread starter Thread starter RJQMAN
  • Start date Start date
R

RJQMAN

I would like to have a message box with two paragraphs so that the
message is easier to read. Is there a way to force words to the next
line and/or skip lines in a message box? Thanks in advance.
 
msgbox "Hello" & vbnewline & "there"



I would like to have a message box with two paragraphs so that the
message is easier to read. Is there a way to force words to the next
line and/or skip lines in a message box? Thanks in advance.
 
And if you want to center it:

msgbox " Hello" & vbnewline & " there"

Adjust the spaces to suit.

HTH
Regards,
Howard
 
You can also use:

Msgbox "Hello" & vbCrLf & "there"

or

Msgbox "Hello" & chr(13) & "there"
 

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