how to run a powerpoint macro from vbscript

R

radnir

Hi all,
I have a problem trying to run a powerpoint macro from an asp page.I
make the call with a client side vbscript and the syntax i use is:

set Oppt = createobject("powerpoint.application")
Oppt.Presentations.Open("C:\mypp.pot")
Oppt.run "Mymacro"

assuming Mymacro is a macro recorded within my mypp.pot file.

With this call I keep getting a page error which says the
application.run is an undefined function or sub.
Could any of you tell me what's wrong with this syntax or show me how
to run a powerpoint macro from an asp page?

Thanks in advance.
radnir.
 

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