Hello everyone,
I have some clean up code in my Document_Close() procedure. My problem is that Word shows a dialogbox asking the user "Do you want to save changes to the document" AFTER this Document_Close event, and this dialogbox has a "Cancel" option in it.
If user Cancels the dialogbox, the closing of the document is cancelled. But my clean up code has already run, and my document is no longer in usable condition.
How can I prevent this situation from occurring?
Any thoughts/pointers/advice?
TIA,
Sheila
I have some clean up code in my Document_Close() procedure. My problem is that Word shows a dialogbox asking the user "Do you want to save changes to the document" AFTER this Document_Close event, and this dialogbox has a "Cancel" option in it.
If user Cancels the dialogbox, the closing of the document is cancelled. But my clean up code has already run, and my document is no longer in usable condition.
How can I prevent this situation from occurring?
Any thoughts/pointers/advice?
TIA,
Sheila