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
 
Back
Top