PowerPoint 2007 only exposes a single presentation close event (PresentationClose
), which is raised before the closing of the presentation.
In several pieces of code I'm working on, I need to keep track of opened presentations, and therefore to react to one of them being closed.
Generally the event proposed by PowerPoint is enough. Except in the following case.
If the presentation has not been saved when it is closed, PowerPoint displays a dialog asking the user if he wants to save his presentation or not. If the user clicks yes or no, everything is fine since the presentation will eventually be closed. But he can also select to cancel closure...
In this case, the close event is raised, the presentation is still there but my application does not know it.
Can someone give me some kind of workaround? Maybe a event raised after the user clicks on cancel?