Mail merge cannot locate the data source!

M

Michael Leong

I create more than 500 documents (mail merge document) and
link it to a database in one of our office's server. After
I take back the documents and the database from the server
and put it in my laptop. The mail merge document cannot
locate the data source. I must edit the data source
location for each mail merge documents. Any solutions?
Please assist, thank you!
 
D

Doug Robbins - Word MVP

Hi Michael,

You can use the .DataSource property of the Mailmerge object to get the name
of the existing datasource and then use the .OpenDataSource method to attach
the datasource from it's new location.

This could be done with a batch process, using a modification of the
procedure in the article "How to Find & ReplaceAll on a Batch of Documents
in the Same Folder" at:

http://www.mvps.org/word/FAQs/MacrosVBA/BatchFR.htm

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