Cancelling a PowerPoint close event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am automating PowerPoint from another application. When a PowerPoint
application is open and the user selects the 'X' button to close the window,
I would like to be able to catch this event and cancel (not allow) the close.
(I want to handle all File events from my own application). For Word and
Excel, a DocumentBeforeClose event is caught which allows the close to be
cancelled. I haven't found any way of doing this for PowerPoint. Is there a
way to programmatically catch and cancel the close that results from
selecting the 'X' button when automating PowerPoint, or disabling the 'X'
button?

Thanks, Stumpiana
 
You can do it by subclassing the PowerPoint window and capture the messages
yourself. The PresentationClose event is very limited.
 
Can PowerPoint be subclassed in VB? If so, do you know which messages I
would be looking for?
Thanks, Stumpiana
 
Back
Top