short message box

L

learningMikey

Hi All ....How can I create a short message box as opposed to very wide? I
want the following message to be displayed in similar format.

This cassette has been rented by:
FirstName LastName
(xxx)-xxx-xxxxx
Please return before renting.

when i put msgbox comman the same appears as

This cassette has been rented by: FirstName LastName (xxx)-xxx-xxxxx Please
return before renting.

And I don't want it this way. Thanks for your help.
 
O

Ofer

Try this

msgbox "This cassette has been rented by: " & chr(13) & _
"FirstName LastName " & chr(13) & _
"(xxx)-xxx-xxxxx " & chr(13) & _
"Please return before renting"
 
G

Gerald Stanley

Use the constant vbCrLf to produce the message in the format that you require
e.g.

MsgBox FirstName & " " & LastName & vbCrLf & ... etc

Hope This Helps
 

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