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

Saving results of Mail Merge using VBA 1

Status
Not open for further replies.

bPruFin

Programmer
Sep 16, 2004
10
US
When I run the following code (from Access) ...

doc.MailMerge.Destination = wdSendToNewDocument
doc.MailMerge.Execute

... I get the results of the merged word document in a new file called "Form Letters1".

My question is, how do I refer to this new file so that I can then work with it (e.g. change it's name, save it to a specific folder, etc.)?

 
Have you tried this ?
doc.Application.Documents("Form Letters1")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi PHV,

No I have not. Looks like a good idea and will try it out.

Thanks!

- Bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top