Excel datasource becomes locked?

D

Damon

Hi,

I am trying to do a mail merge with word using excel as a datasource, I am
doing this via a class module in VB6. When opening the datasource with
MailMerge.OpenDataSource name:=wrdDataDocName it comes up with a "Select
Table" box. I have looked on the Microsoft website and they mention this is
a condition of using Word 2002 because it uses OLEDB instead of DDE, however
they suggest adding "SubType:=wdMergeSubTypeWord2000" to the OpenDataSource
line to force it to use DDE but when I do this the excel datasource says
that it is locked. Does anyone know why this may be happening? Would
appreciate the help.

Thanks

Damon
 

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