Messagebox text formating

  • Thread starter Thread starter Joe Bohen
  • Start date Start date
J

Joe Bohen

I have quite a few message boxes written in my
applications, some of which appear unwieldy as they
stretch across the screen. They would look better if they
were forced onto two lines or more.
Once again my insomnia depends on an answer.
My wife sends her thanks for the anticipated support.
Joe
 
MsgBox "Best regards" & vbCrLf & "to you and yours."

If you use macros instead of code make the message:
"Best regards" & Chr(13) & Chr(10) & "to you and yours."
 
Hi,


MsgBox "GO "& vbCrLf & "to sleep" & vbCrLf & vbCrLf & _
"OK: agree" & vbCrLf & "No: do not agree" , vbOKOnly+vbExclamation



Vanderghast, Access MVP
 

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

Similar Threads

Vacinations ??? 4
appointment appears as text 3
They Walk Amongst Us 2
My Network Places History 3
Toe-tale 22
Hackers Remotely Kill a Jeep on the Highway 5
Westminster 28th March 2017 7
No Taskbar 1

Back
Top