message box, how to divide the inf into different lines?

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

For example, my VBA is now like this:

MsgBox "aaaaaaaaaabbbbbbbbbbbcccccccccc", , "Hints!"


I want to make the message box showing that:

aaaaaaaaaa
bbbbbbbbbb
cccccccccc


INSTEAD OF:
aaaaaaaaabbbbbbbbbbbcccccccccc



QUESTION: How should the VBA sentences changed into ?



Thank you.
 
Martin:

You could try something like the following:

MsgBox "aaaaaaaaaa" & vbCrLf & "bbbbbbbbbbb" & vbCrLf & "cccccccccc", ,
"Hints!"


--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.



For example, my VBA is now like this:

MsgBox "aaaaaaaaaabbbbbbbbbbbcccccccccc", , "Hints!"


I want to make the message box showing that:

aaaaaaaaaa
bbbbbbbbbb
cccccccccc


INSTEAD OF:
aaaaaaaaabbbbbbbbbbbcccccccccc



QUESTION: How should the VBA sentences changed into ?



Thank 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