msgbox

G

george

hello,
how can i display the content of the msgbox over 2 lines
or more instead of 1 single line.
exemple:
Clicking this buttom will cause data to be erased.
Do you want to proceed?

thanks for your cooperation in advance.
 
P

PC Datasheet

MsgBox "Clicking this buttom will cause data to be erased." & VbCrLf _
& "Do you want to proceed?"

Will give you this:
Clicking this buttom will cause data to be erased.
Do you want to proceed?

MsgBox "Clicking this buttom will cause data to be erased." & VbCrLf & VbCrLf _
& "Do you want to proceed?"


Will give you this:
Clicking this buttom will cause data to be erased.

Do you want to proceed?

PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com
 
D

Denny G.

MsgBox "Clicking this buttom will cause data to be
erased. " _
& "Do you want to proceed?"

Denny G.
 
G

george

thks jmonty, the vbCR did it.
-----Original Message-----
Msgbox("Clicking this buttom will cause data " & _
"to be erased." & vbCR & "Do you want " & _
"to proceed?", vbYesNo, "Title")

Sorry about the continuation characters(_) but space is
limited. Anyway Use the built in vbCR = Carriage Return.
Highlight it (vbCR) and press F1 for more info.


.
 

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