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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next line in message box

Status
Not open for further replies.

GMcFly

Programmer
Oct 2, 2002
48
NL
Hi all,
I have a message which I want to have on several lines in a message box. For example if my message is "Tek-Tips is very cool and is worth adding to your favorites" I would like it to appear like this:

Tek-Tips is very cool
and is worth adding to your
favorites

on 3 different lines in the box
How can I do this? Thanks for your help
 
MsgBox "Tek-Tips is very cool" & Chr(13) & "and is worth adding to your" & Chr(13) & "favorites"
 
Cool!! Thanks a lot, all I needed!
 
Just out of interest:

VBA has these two constants:
Code:
vbCrLf
and
Code:
vbLf
Makes your code easier to read ...

Cheers
Nikki
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top