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
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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.