Long message line

  • Thread starter Thread starter Bhuktar S
  • Start date Start date
B

Bhuktar S

How do I put message on a MsgBox in multiline.
e.g.
"1. xxxxxx"
"2. yyyyyy"
"3. zzzzz"

Secondly, if the message writing itself in line 1 is long in code, how
to break the line/sentence so that it is displayed (else one has to
scroll on right side). (I remember seeing in some example, the
character _ used; but do not know fully)
e.g. I want to write as "1. xxxxxxxxx ssssssssss _
kkkkkkkkkkkk bbbbbbbbb.

Please suggest.
 
Hi
try something like the following

dim msgstr as string
msgstr = "line1" & vbcr & "line2" & vbcr & "line3"
msgbox msgstr
 

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