How can I run macro inside ppa file from VBA?

  • Thread starter Thread starter sujatha.kokkirala
  • Start date Start date
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.
 
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
 
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.
 
Back
Top