Msgbox text hard return

  • Thread starter Thread starter Jo
  • Start date Start date
J

Jo

Hi
How do I set up my message box to say
blah, blah, blah
etc., etc.
rather than
blah, blah, blah etc., etc.
That is I want a line return between my txt rather than a
really long message box.
Thanks
Jo
 
Hi Jo

Sub test()
MsgBox "blah blah" & Chr(10) & _
"yet another blah" & Chr(10) & Chr(10) & _
"don't touch that dial"
End Sub

HTH. Best wishes Harald
 
One way:

MsgBox "blah, blah, blah" & vbNewLine & "etc., etc."





Note: vbNewLine works for both WinXL and MacXL.
 

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