Multi-line msgbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i'm having a problem with my msgbox, my msgbox get too long because of my
prompt, how can i make my msgbox short without editing my prompt?
guys i need your help
thanks
resti
 
You will have to edit your prompt.

Try:
MsgBox "Line1" & Chr(13) & Chr(10) & "Line 2"

This inserts a carriage return and line feed into the string.
 
thanks allen for the help, god bless

Allen Browne said:
You will have to edit your prompt.

Try:
MsgBox "Line1" & Chr(13) & Chr(10) & "Line 2"

This inserts a carriage return and line feed into the string.
 
I find it easier to use the vbCrLf syntax. For example:

MsgBox "Line1" & vbCrLf & "Line 2" vbCrLf & "Line 3"

I think it reads a little better.
 

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