How do you modify the mail merge data source?

P

Patrick Finucane

Let's say I created a mail merge document template MergeCustomer.Doc.
The mail merge data source, when created, used the text file Merge.Txt.

Now I want to open up MergeCustomer.Doc, merge from another text file
called LargeMailMerge.Txt, then close Word via VBA

Both MailMerge.Txt and LargeMailMerge.Txt have the same fields and
positions, the only difference is the name.

How do I tell Word that it has a "new" data source?
 
D

Doug Robbins - Word MVP

Hi Patrick,

Check out the CreateDataSource function. But why not just change the name
of the data file?

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

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