executing word from a batch file to run a macro

M

mark mcfarlane

I would like to start up MS Word, load a particular document, run a macro in the document, then close word and the document.

All of this needs to be performed from a batch file (or WSH file) that can be executed from the task scheduler

I have the macro working (thanks to Peter Hewett) and I have a Windows Hosting Shell .wsh script that does all kinds of other fun things, I just can't figure out how to do the 5 steps outlines above from the .wsh file

Any ideas how I get Word to run a macro on a document from within a shell script

Thanks

Mark
 
P

Perry

It depends on how the script has set a pointer to the documents, y're trying
to
run a macro from.

Can you post back the part of the code in which the batch processing is done
or how
the documents are opened/created?

Krgrds,
Perry

mark mcfarlane said:
I would like to start up MS Word, load a particular document, run a macro
in the document, then close word and the document.
All of this needs to be performed from a batch file (or WSH file) that can
be executed from the task scheduler.
I have the macro working (thanks to Peter Hewett) and I have a Windows
Hosting Shell .wsh script that does all kinds of other fun things, I just
can't figure out how to do the 5 steps outlines above from the .wsh file.
 

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