Skip to main content

[Migrated content. Thread originally posted on 03 March 2005]

Hi,

I want to execute a Macro saved within een Word document.
I open that Word document with my ACU program, and then i want to execute that macro.
Does someone know which command i have to use within my ACU program?

Tnx

[Migrated content. Thread originally posted on 03 March 2005]

Hi,

I want to execute a Macro saved within een Word document.
I open that Word document with my ACU program, and then i want to execute that macro.
Does someone know which command i have to use within my ACU program?

Tnx
it should be something like this:

call "c$run" using "c:\\mydok.doc /mMYMACRO"
or maybe:
call "c$run" using "path-to-winword.exe /mMYMACRO c:\\mydok.doc "

where of course MYMACRO has to be the name of your macro.
maybe you need to name your macro like this: "modul1.MYMACRO" .. depends on the location of your macro.


or (if you use the activex-way)
something like this:

modify word-Handle, @application::run (macro-name)


i think it should work ..