To do a line break in a message box, use the Chr(13) function in the prompt string, eg,
MsgBox "This is line 1" & Chr(13) & "This is line 2"
Printable View
To do a line break in a message box, use the Chr(13) function in the prompt string, eg,
MsgBox "This is line 1" & Chr(13) & "This is line 2"
Or:
vbCrLf being the break.Code:MsgBox "This is 1" & vbCrLf & "This is 2"
Laterz,
D!m
There is a variety of them:
- vbNewLine (Not supported in VB4)
- vbCrLf
- Chr(13)
- Chr(vbKeyEnter)