Losing Mail Merge DataSource

C

Conor

I have a problem with losing the data source of my mail merge
document. I created a mail merge document called MergeTest and set its
main document type to Letters. I then ran the following code:


Set wApp = CreateObject("Word.Application")
Set wDoc1 = wApp.Documents.Open("MergeTest.doc")
wDoc1.MailMerge.OpenDataSource "301.tmp"
''' *1*
wDoc1.Close

Set wDoc1 = wApp.Documents.Open("MergeTest.doc")
''' *2*
wDoc1.Close


At stage *1* its state is wdMainAndDataSource, but when reopened it
seems to reset to wdNormalDocument (*2*).

Is there a parameter or setting I'm not aware of?

Conor.
 

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