Error Box

  • Thread starter Thread starter Gazz_85
  • Start date Start date
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
 
Hello,

i use vbcr like..

MsgBox "First Line" & vbCr & _
"Second Line" & vbCr & _
"Third Line ", vbInformation, "Error"
 
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
 
Back
Top