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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file for Macro

Status
Not open for further replies.

AJD10

MIS
Apr 26, 2002
46
US
How do I execute a Word macro (to perform a mail merge process) from a batch file?

Also, is there a specific way to save the macro? (i.e., "All active templates and documents")

Thanks in advance!
 
Hi,

The Batch file would have to open a Word document, 'cuz a VBA Word macro can ONLY run in Word. Then the Word document could fire your merge macro in the Document_Open event.

So why not just open the Word document and let 'er rip! ???

Save your Merge macro in the Word document.

:)

Skip,
Skip@TheOfficeExperts.com
 
Great idea! Thanks.

The only reason we need to do this via batch process is because data files will be recieved from one place, renamed, merged and moved to another place (on a daily basis now!)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top