Run macro for all documents

B

Blackstar

Hi,

I have to add a custom footer to every powerpoint document based on an
enviromental variable. This isn't a problem I've got the vb/vba code
to do this. My problem is that I'm not really sure where to put it.

No matter what the document is or what template it is based on I need
to run this code. I was wondering if I should put it in PPT10.pcb or
is there somewhere else that is always checked for code?

Also how do I open PPT10.pcb?

If I put it in PPT10.pcb will I also need to put it in any existing
templates that are used?

Thanks
 
S

Shyam Pillai

Hi,
To make the macro available to all the presentations, you will need to
create an add-in with a menu item to click on to fire the macro to process
the active presentation. Is that what you are looking for? Take a look at
this page: http://skp.mvps.org/ppafaq.htm. Or are you trying to batch
process several presentations simultaneously?

Regards,
Shyam Pillai

Handout Wizard
http://skp.mvps.org/how
 
B

Blackstar

Basically what I'm trying to do is add a custom footer to the master
slide when the user saves. This needs to be done on every presentation
created and it needs to be done automatically so the button might not
be the best option.

Thanks
 
B

Blackstar

That looks like just the ticket. Thanks

Steve said:
Probably not. But you'd still need to put the code in an addin.
The addin would need to include an event handler to trap the event that occurs
when the presentation closes.

Shyam's got a lot of good information about that on his site and there's a link
to it from here:

Make PPT respond to events
http://www.pptfaq.com/FAQ00004.htm




-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
B

Blackstar

Would an add-in make the code (event handling) avaliable (handled) on
every document created/opened?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top