DocumentBeforeClose - Cancel 'save changes' dialog

L

lostnomad311

I am handling the DocumentBeforeClose event, but nothing I try inside this
event will stop Word from presenting the user with the 'save changes' dialog.
On the other hand I am able to capture and cancel the DocumentBeforeSave
event without problems.

I have tried marking the document as saved, closing the documents active
window with save set to false and quitting the application again with save
set to false. None work.

How do I prevent this dialog from appearing ...this is a temporary file
which will receive post-processing then output to a pre-defined folder so
this is an annoying obstacle!

Thanks for any help
-nomad311
 

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

Top