How to assign a Macro to a customized toolbar in a Template Docume

A

afrancoj

Hello all... I have an "interesting" problem that is driving me crazy...

I have a template in Powerpoint (.pot) and I have a procedure that creates a
customized toolbar and asignes macros to some of the buttons in the toolbar.

If I am working in the template document the toolbar works just fine and the
macros are executed.

However when I create a new document from the template (Document1) and I
click on the buttons, nothing happens. I have set breakpoint in the code but
the code looks like is never executed.

What could be the problem?

Thanks for the help,

Andres
 
S

Steve Rindsberg

Afrancoj said:
Hello all... I have an "interesting" problem that is driving me crazy...

I have a template in Powerpoint (.pot) and I have a procedure that creates a
customized toolbar and asignes macros to some of the buttons in the toolbar.

If I am working in the template document the toolbar works just fine and the
macros are executed.

However when I create a new document from the template (Document1) and I
click on the buttons, nothing happens. I have set breakpoint in the code but
the code looks like is never executed.

What could be the problem?

Hi Andres,

I think perhaps you're expecting PowerPoint to work like Word or Excel in the
way it allows you to run code automatically from a template. It doesn't.

To do what you want, you'll have to create an Add-in.
Start here:

Creating and Installing Add-ins, Toolbars, Buttons
http://www.rdpslides.com/pptfaq/index.html#Creating_and_Installing_Add-ins,_Too
lbars,_Buttons_
 
A

afrancoj

Thank you Steve. I followed your instructions and it works perfect.

Greetings,

Andres

"Steve Rindsberg" escribió:
 

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