Error Box

G

Gazz_85

I have an error box with quite a long error message. How in the code would i
get it to split the message up and stick it on other lines in order to
squeeze the box down??

Cheers
 
K

Kevin Smith

Hello,

i use vbcr like..

MsgBox "First Line" & vbCr & _
"Second Line" & vbCr & _
"Third Line ", vbInformation, "Error"
 
J

Jacob Skaria

Dim strMsg As String

strMsg = "This is a message box" & vbLf
strMsg = strMsg & "text which is to be" & vbLf
strMsg = strMsg & "shown in three lines"

MsgBox strMsg, vbInformation, "Error"

If this post helps click Yes
 
Top