Macros not working when I save as a PPA?

A

Alex Gilbert

Hey folks, this is my first VBA project so let me know if I'm not
communicating my problem clearly enough.

So I'm using Office 2003 and I have a VBA project that contains a
number of macros working together:

The Auto_Open macro loads a new CommandBarButton. Clicking this button
calls a macro that executes .AddPicture on the Master Slide, loading a
custom button graphic that I want to be able to use when in Slide Show
view. Finally, this button graphic has another macro assigned to it
using the .ActionSettings(ppMouseClick).Run property.

Everything works as expected when I'm using the presentation in which
I am developing the VBA, and also when I save the presentation as a
template. However, when I save the presentation as a PowerPoint Add-
in, load it in a new, blank presentation, and then go through the
process, my custom button graphic isn't being assigned any actions. It
isn't clickable like it's supposed to be. When I edit it action
settings manually, I can see that the "Action on click" field is set
to none and the "Run macro" option is disabled.

This leads me to believe that something about saving as a PPA doesn't
include all the macros as it does in a presentation or a template. Is
there anybody who can tell me what I'm not understanding about this
process? A way to make this work the way I need it to? Maybe there's a
simple hack or workaround, that would be fine by me as well.

Thanks in advance!
 
S

Shyam Pillai

Alex,
It seems like a problem in code rather the PPA. If you could post the
relevant routine that does not work then possibly myself and others here
would be able to help address it.


--
Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm
 
A

Alex Gilbert

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