Can You Help Meeeeeeeeeeeeeeee.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I do one long MsgBox from a single line in to 2 lines

Dim strMsg1 As Strin

strMsg1 = "Your Report Was Sent Successfully You May Close the Report

Thank you,
 
strMsg1 = "Your Report Was Sent Successfully. " & Chr(13) & Chr(10) & "You
May Close the Report."

or

strMsg1 = "Your Report Was Sent Successfully. " & vbCrLf & "You May Close
the Report."
 
-----Original Message-----
How can I do one long MsgBox from a single line in to 2 lines?

Dim strMsg1 As String

strMsg1 = "Your Report Was Sent Successfully You May Close the Report"

Thank you,
.

Use Chr$(10) & Chr$(13) to force line feed and carriage
return

msgbox "Your Report Was Sent Successfull" & Chr$(10) &
Chr$(13) & Chr$(10) & Chr$(13) & "Close the
Report",vbinformation,"Good Job"
 
Back
Top