Passing parameters from DOS shell to a word macro

C

CENTRINO

Hi,

I know that I can run word macros from DOS shell, but; is it possible to
passs parameters to the word macro from shell ?

Example from DOS shell command line or cmd file: start winword.exe
/mMacro1 (parameter1, parameter2)
(Macro1 recives two parameters)


Thanks in advance.
 
J

Jay Freedman

No, there's no way to pass the parameters on the command line of Word. You'll have to use another way to make the information available. Possibilities include writing a text file in a known location,
or writing the information to a known key / value in the registry, so the macro can retrieve it on startup.
 

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