Word uses a slightly different version of the same property. Instead
of accepting a Boolean value, Word uses three Long constants: wdAlertsNone,
wdAlertsAll and wdAlertsMessageBox. The first two settings are
fairly self-explanatory. The last setting tells Word to display
only standard message box alerts.
Under normal conditions, the code statement:
ActiveDocument.Close
would generate a message box asking if you wanted to save the document
in question. Using the DisplayAlerts property, the following code
I never want the user to save the document. The user just fills in fields and prints. I have a template attached to the doc and in the Close_Document i put
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.