Catching After-Close events in office

Add-in Express™ Support Service
That's what is more important than anything else

Catching After-Close events in office
 
Igor Govorov




Posts: 83
Joined: 2014-02-12
Hello,
Is there a way to know when a document has been closed without saving?
If the save prompt appears and the user presses save, we get before/after save events.
However, if the popup appears and user presses "Don't save", or no popup appears, we have no idea what's going on

Any idea on this matter?
Posted 16 Aug, 2015 09:40:20 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Hello Igor,

Is this about Word?


Andrei Smolin
Add-in Express Team Leader
Posted 17 Aug, 2015 09:20:13 Top
Igor Govorov




Posts: 83
Joined: 2014-02-12
Hi Andrei,
I have this issue in Word, Excel and PowerPoint.
Posted 18 Aug, 2015 05:46:26 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Hello Igor,

The object models of these applications don't provide a direct way.

I would intercept the CommandBarsUpdate event as well as all events relating to saving/closing the document/workbook/presentation and study the sequence of events in different scenario.


Andrei Smolin
Add-in Express Team Leader
Posted 18 Aug, 2015 05:51:38 Top