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.

How can I get my code to run automatically when a presentation opens?

Problem

You have some neat macros that you want to run automatically whenever you or anyone else opens your presentation or when PowerPoint starts up. How do you make that happen?

You can't. PowerPoint has no way to run code automatically when the user opens a document file.

If you want code to run when PowerPoint opens, you can create an add-in and install it. If the add-in includes a Sub Auto_Open() routine, the code in that routine will run when the add-in loads.

Create an ADD-IN with TOOLBARS that run macros

Your add-in can also respond to events (like Presentation Open) so you can have it run code when a presentation's opened or closed or printed etc.

Make PPT respond to events

If an add-in is out of the question or just too much trouble ...

If an add-in isn't in the cards, there's another dodge that may help if you're trying to get code in a Slide Show (PPS or PPSX) to run:

ActivePresentation.SlideShowWindow.View.GotoSlide (2)

Set the presentation to Kiosk mode and include any other navigation buttons a user will need to view the presentation.


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

How can I get my code to run automatically when a presentation opens?
http://www.pptfaq.com/FAQ00741_How_can_I_get_my_code_to_run_automatically_when_a_presentation_opens-.htm
Last update 07 June, 2011
Created: