Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2004

Tip: Looking for answers? Try searching our database.

Automated Merge from command-line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wes Dabney - 28 Jul 2004 16:50 GMT
I'm using Office 2000 SP3 and linking queries from Access to Word. I have it
setup now so from a form, a user can open the linked template with the
filters from the form applied to the linked query. My question is this, is
there anyway to automate the merge option from the dos command line, eg
"winword.exe somefile.doc -merge newfile.doc". If anyone knows of a way to
do this, it would save me with my less-than-savy users. Thanks.

Signature

Wes Dabney
Information Technology
Gary R. Traylor and Associates
Phone: 903-581-0500
Fax: 903-581-4245

Peter Jamieson - 30 Jul 2004 12:11 GMT
There are a couple of ways you can consider trying to get Word to do a merge
automatically:
a. put AutoOpen macros with the necessary code in the Mail Merge Main
Documents
b. use the command line options that let you specify the name of a macro to
run

If it makes sense for your users, you /might/ also be able to add a command
to the Windows shell so that they see a "Merge" option for Word documents,
or it might even make sense to use your own file extension (say ".docm" )
and set up the file associations to make such files merge by default when
they are opened. However, I think you would have to use the DDE facilities
in the shell and things are already looking complicated...

Signature

Peter Jamieson

> I'm using Office 2000 SP3 and linking queries from Access to Word. I have it
> setup now so from a form, a user can open the linked template with the
> filters from the form applied to the linked query. My question is this, is
> there anyway to automate the merge option from the dos command line, eg
> "winword.exe somefile.doc -merge newfile.doc". If anyone knows of a way to
> do this, it would save me with my less-than-savy users. Thanks.
larrydalooza - 03 Aug 2004 06:28 GMT
> There are a couple of ways you can consider trying to get Word to do a merge
> automatically:
[quoted text clipped - 17 lines]
> > "winword.exe somefile.doc -merge newfile.doc". If anyone knows of a way to
> > do this, it would save me with my less-than-savy users. Thanks.

Anything you can do manually, you can automate with AutoIt

http://www.autoitscript.com/autoit3/

The forum is marvelous for help.

Lar.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.