Can You Help Meeeeeeeeeeeeeeee.

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,
 
C

Cheryl Fischer

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."
 
J

Jim H

-----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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top