PowerPoint event-handling best practices, oddities and workarounds
The Close event fires when I print a presentation
Thanks to PowerPoint MVP Shyam Pillai for this:
When you print a presentation, PowerPoint's print engine appears to work with a copy of the presentation.
When the printing ends, PowerPoint closes this copy, which in turn fires the Close Event.
Note also that this hidden presentation has no path (reasonable, since it hasn't been saved).
Disable event handling while handling events
It's a good idea to set a flag variable in your event handler and to check for its value before responding to events.
You usually don't want to respond to events that your event-handling code has triggered.
Did this solve your problem? If so, please consider supporting the PPT FAQ with a small PayPal donation.