Trapping close...save (yes/no/cancel) thru macro

K

K. Rajasekar

Hi,

Can you let me know how I can trap the event that is
triggered when I close the word (after editing the
document) and then "do you want to save the document..'
(YES/NO/Cancel) thru macro.

The macro AutoClose(), is able to trap the close event.
But not the subsequent events like "do you want to
save..." and selection of Yes/No/Cancel then the SaveAs
dialog box.

Thanks,
K. Rajasekar
 
S

Steve Wylie

Have you tried using your AutoClose macro, or similar way of trapping, but
using

ActiveDocument.Close (wdDoNotSaveChanges)

This will close the document without asking you about saving changes. Or
indeed saving any changes.

Steve Wylie
 

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