Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to go to make a MsgBox message go to the next line if it....

Status
Not open for further replies.

PorscheGT2

Programmer
Jan 20, 2004
23
US
.. doesnt fit the screen.

I know you use the underscore symbol to do that, but how? TIA!
 
Not sure what you are asking. To make a multi line msgbox use vbCrLf (see also vbCr and vbLf) To split a line of code on two lines, end the first line with a space and then a under score " _"


Sub example()
MsgBox "This is line 1" & vbCrLf & "This is line 2"
MsgBox "This is a very long..." _
& "line" 'second line of code
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top