Running macro from a toolbar button

R

Robert Leithe

Hi,

QUESTION #1
I have a PowerPoint template in which I created a small
macro that simply deletes the current slide.

With this template open, I have created a new toolbar and
customized it to display only one button, and I've linked
the macro mentioned above to this button.
When I click the button the following happens:

- When the template is opened for editing: the macro runs
successfully

- When I create a new presentation based on this template:
nothing happens when I click the button. But if I go to
Tools|Macro|Macros... I can see the macro in the list and
run it succesfully.

What's wrong here?
----------------------------------------------------------
QUESTION #2
How can I make a slideshow run automatically when opened?

Sincerely
Robert Leithe
 
R

Robert Leithe

-----Original Message-----
You need to create an add-in instead. See:

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

Thanks, it worked :)

But one issue remains: with this add-in loaded the newly
created toolbar is displayed every time PP is started. I
would like to link this toolbar to one single PP template.
Any ideas here?

Can I edit the code to check the name of the PP template
of which the user is basing the current presentation on,
and if it's "xyz" THEN i'll sett the visible = TRUE, else
it will be FALSE? If so, how can I check which
template/document is active?
 

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