How to detect window closing in DocumentBeforeSave event

M

mrb

Im currently building a Word COM add-in, which has several lines of code for
both the DocumentBeforeSave event and DocumentBeforeClose event.

During closing of the document the user is naturally asked whether to save
the document. If document is saved the DocumentBeforeSave event is triggered
before the DocumentBeforeClose event which is fair enough.

I need to determine during the DocumentBeforeSave event routine that the
document is closing (in the process of closing). How can this be determined?

Any help appreciated....

Andrew
--
 

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