Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute Word Macro From DOS Command Line 1

Status
Not open for further replies.

wvjim

Programmer
Jan 11, 2001
25
US
I am trying to automatically execute a word macro from a dos command line after exiting a program. I am able to accomplish this using word perfect with the following command:
d:\corel\suite8\program\wpwin8/u-wp /m-civsum

This automatically executes the macro "civsum" in the wordperfect folder and creates a document using a file I created in the program. I'm trying to accomplish the same thing, basically using Microsoft Word.
 
One way would be to put the macro in the on open event of a document and run the command winword.exe /docname.doc. It may not be the most effective way, but it should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top