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

displaying text in msgbox 3

Status
Not open for further replies.

johnnyv

Programmer
Jul 13, 2001
216
CA
Is it possible to have a msg in a msgbox display on 2 lines instead on one?
an example
I have a msgbox that displays the following msg

You have not entered in the correct number. Please try again

I would like for it to display as

You have not entered in the correct number.
Please try again.


thanks for any replys!!
 
MsgBox "You have not entered in the correct number." & vbNewLine & _
"Please try again", vbInformation

Swi
 
MsgBox "You have not entered in the correct number." & vbCrLf & "Please try again. "

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Just to be different:
MsgBox "You have not entered in the correct number." & Chr(13) & "Please try again. "
[tongue]

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
You boys are on the ball today 3 replys in under 5 minutes.

Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top