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

New line in a MsgBox

Status
Not open for further replies.

Larshg

Programmer
Mar 1, 2001
187
DK
Hi

i want to make at new line in a MsgBox The text is like this.
strMsg = "You need to fill all the boxes whit a red dot" + Err.Description
MsgBox strMsg
Resume Exit_Kommandoknap75_Click

The Err.Description should be on a new line

Thanks
Larshg
 
There are very nice constant in VBA
vbCrLf - carriage return and line feed.
So modify assignement line as
strMsg = "You need to fill all the boxes whit a red dot" + vbCrLf + Err.Description

and it should be OK!
also You can use instead constant CHR$(10) + CHR$(13)
 
try this:

msgbox "You need..." & chr$(13) & err.description
Hope this is ok. If not, just let me know.

Nick (Everton Rool OK!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top