How can I run macro inside ppa file from VBA?

S

sujatha.kokkirala

Hello,

I have written few macros in a ppt file. It is accessible via the
Tools->Macro menu.
I have created an Add-In by saving ppt file as a ppa. I am creating a
toolbar, with pull down menu, each menu option is a macro.
I can then open any ppt file, load add-in via Tools->Add-ins, and the
toolbar works fine. or I can do auto-load by adding the .ppa to the
registry.
My question is, Is there a way to programatically run the macro from vc
++? an example in vb would be helpful as well. I tried
Application.Run(ppaName!ModuleName.MacroName), but it doesn't seem to
be working.

Thankyou.
 
S

Shyam Pillai

Application.Run is the way to fire the macro. It works if the reference to
the application and rest of the arguments are correct.

Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org
 
S

sujatha.kokkirala

Application.Run is the way to fire the macro. It works if the reference to
the application and rest of the arguments are correct.

Regards,
Shyam Pillai

Image Importer Wizardhttp://skp.mvps.org








- Show quoted text -

Thanks for your response.
I have tried Application.Run, but it doesn't work. When I am in the
ppt file, Tools->Add-in shows the list of macros.
However, the .ppa file does not list macros. But, toolbar works fine.
So, should I pass ppt or ppa file as arguments to Application.Run()?
an example would be great.
Thankyou.
 

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