Macros in PPT 2007

D

Dave Robinson

How do I make a macro available to every presentation in ppt?

In my first 2007 Presentation I created a macro to print to a color copier
(not the default printer) and put the macro on the QAT with a special icon.
It worked for that Presentation (as it does in Word also). However, in all
other presentations, it does not recognize the macro and gives an error
message "Powerpoint can't run this macro because it can't open
Presentation1.ppt".

In PPT 2003 I used the 'customize' option to put the macro on a toolbar and
it was available to all presentations.
-
Dave Robinson
 
D

David M. Marcovitz

I'm sure you are mistaken. This is done in roughly the same way as it
was done in 2003. Both involve creating an add-in. Here is information
about creating an add-in:

Create an ADD-IN with TOOLBARS that run macros
http://www.pptfaq.com/FAQ00031.htm
 
S

Steve Rindsberg

David M. said:
I'm sure you are mistaken.

Perhaps not. From 2000 on, PPT appears to track the presentation that added
buttons that invoke macros. If you click the button and PPT can find the
presentation, it'll open it and load/run the macro.

That could account for why this worked in earlier versions.

The fact that it's looking for "Presentation1" suggests that the presentation
containing the macro was never saved, so while PPT is still trying to load it,
it's not there to be found. Perhaps saving it first, then assigning the macro
to the QAT might work.

But it wouldn't be especially reliable. Add-ins are the better way to go, as
you say.
 
S

Shyam Pillai

Dave,
In 2007, PPT does not reference the full path to the presentation when you
add the macro to the QAT. Hence the issue. Create an add-in that's the best
way to go.


--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 
D

David M. Marcovitz

Wow. I learn something new every day.

Perhaps not. From 2000 on, PPT appears to track the presentation that
added buttons that invoke macros. If you click the button and PPT can
find the presentation, it'll open it and load/run the macro.

That could account for why this worked in earlier versions.

The fact that it's looking for "Presentation1" suggests that the
presentation containing the macro was never saved, so while PPT is
still trying to load it, it's not there to be found. Perhaps saving
it first, then assigning the macro to the QAT might work.

But it wouldn't be especially reliable. Add-ins are the better way to
go, as you say.





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

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