Multi-line msgbox

R

Resti M. Guay

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
 
A

Allen Browne

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.
 
R

Resti M. Guay

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.
 
C

Chuck Wood

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.
 
Top