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,