Run macro automatically when Powerpoint opens a presentation/template

  • Thread starter Thread starter Atle
  • Start date Start date
A

Atle

Problem Description: I am programming a template in
Powerpoint (I use Office XP when I develop this, but the
template also needs to work under Office 2000).
I need to have Powerpoint run a macro when it opens this
template, and/or creates a new file based on this
template.
I see the OpenDocument event, but it seems to have to be
initialized, and I don't find how to get to run this
initilization without user interaction, which I need.

In Word, I can use the autoopen macro name. It does not
work under Powerpoint, it seems.

How do I do this?

THANKS!
 
Atle,
Check out this page from the PPT FAQ:
Create an ADD-IN with TOOLBARS that run macros
http://www.rdpslides.com/pptfaq/FAQ00031.htm

While you are there, read the other VBA pages on the FAQ as well. You never
know what you might learn. Then, as you get more questions, post your code
with your questions (or at least relevant parts). Hope to hear more from
you!
--
Kathryn Jacobs, Microsoft PPT MVP
If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/jacobskl/
Get PowerPoint answers at http://www.powerpointanswers.com
Cook anything outdoors with http://www.outdoorcook.com
Kathy is a trainer, writer, Girl Scout, and whatever else there is time for
I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 
Atle,
You might want to take a look- http://www.mvps.org/skp/ppafaq.htm. Two auto
execute VBA procs in PPT are
Auto_Open & Auto_Close. However, quite unlike Word & Excel, these execute
automatically only within
an add-in.

Auto_Open: when you load the add-in
Auto_Close: when you unload the add-in

If you are using PowerPoint 2000 or later create your own event handler
add-in or you can try my free AutoEvents Addin. The add-in is designed to
execute the certain routines automatically if present in the presentation.
You can download and learn more about it from
http://www.mvps.org/skp/download.htm

--
Regards
Shyam Pillai

Handout Wizard
http://www.mvps.org/skp/how/
 
Back
Top