Supercharge your PowerPoint productivity with
Supercharge your PPT Productivity with PPTools - Click here to learn more.

Proud member of

PPTools

Image Export converts PowerPoint slides to high-quality images.

PPT2HTML exports HTML even from PowerPoint 2010 and 2013, gives you full control of PowerPoint HTML output, helps meet Section 508 accessibility requirements

Merge Excel data into PowerPoint presentations to create certificates, awards presentations, personalized presentations and more

Resize your presentations quickly and without distortion

Language Selector switches the text in your presentation from one language to another

FixLinks prevents broken links when you distribute PowerPoint presentations

Shape Styles brings styles to PowerPoint. Apply complex formatting with a single click.

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.
Page copy protected against web site content infringement by Copyscape Contents © 1995 - 2022 Stephen Rindsberg, Rindsberg Photography, Inc. and members of the MS PowerPoint MVP team. You may link to this page but any form of unauthorized reproduction of this page's contents is expressly forbidden.

Supercharge your PPT Productivity with PPTools

content authoring & site maintenance by
Friday, the automatic faq maker (logo)
Friday - The Automatic FAQ Maker

PowerPoint event-handling best practices, oddities and workarounds
http://www.pptfaq.com/FAQ00675_PowerPoint_event-handling_best_practices-_oddities_and_workarounds.htm
Last update 07 June, 2011
Created: