running a macro when Word starts

B

Bernie Yaeger

I have to open a specific Word document from my .net app and run a macro
against that document. I can simply do this with a shell command calling,
for example,
winword c:\mydocu~1\today.doc

But I don't know how to run a macro automatically when this is called.



In previous versions of Word, this worked:

winword c:\mydocu~1\today.doc/mtestmacro

where the name of the macro was testmacro. But this doesn't work in Word
XP. What is the proper syntax for Word XP?



Tx for any help.



Bernie Yaeger
 

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