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!
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!