Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

put a new line in the middle of a dialog box string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clarke - 21 Dec 2004 22:33 GMT
Hey everyone,
 I'm writing some vb code to pop up a dialog box and ask the user if he
wants to save changes to his document, and I would like to put a new line in
the middle of my string, but I'm not sure how to write a new line in a dialog
box....

Here's my code:
strAnswer = MsgBox("AutoSave activated. Would you like to save your changes
in this document? Click Yes to save changes in the current document, No to
save changes in a different document, or Cancel saving right now.", _
       vbYesNoCancel Or vbQuestion, "AutoSave")

I want  this by itself:
AutoSave activated. Would you like to save your changes in this document?

And this on a different line:
Click Yes to save changes in the current document, No to save changes in a
different document, or Cancel saving right now.

And then the Yes, No, Cancel buttons beneath that.

Thanks,
Jonathan West - 22 Dec 2004 00:29 GMT
Hi Clarke

Try this

strAnswer = MsgBox("AutoSave activated. Would you like to save your changes
in this document?" & vbCr & "Click Yes to save changes in the current
document, No to
save changes in a different document, or Cancel saving right now.", _
      vbYesNoCancel Or vbQuestion, "AutoSave")

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

> Hey everyone,
>  I'm writing some vb code to pop up a dialog box and ask the user if he
[quoted text clipped - 21 lines]
>
> Thanks,

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.