Hi Junaid,
Use the [documentobject].MailMerge.OpenDataSource command

Signature
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
> Hello everyone,
> I'm using Word 2000 and have a question about the logistics of Mail
[quoted text clipped - 16 lines]
> Thanks
> Junaid
Junaid - 24 Mar 2004 15:14 GMT
Thanks Doug, but I have a related question though. I am opening the document
using the OLE object command Open(<document_name>) and I have an AutoOpen()
macro in the document that runs the MailMerge command. How can I pass the
data file name from the OLE object to the document so that the AutoOpen
Macro would know about it. Is there another way to achieve what I'm trying
to do. Please bear in mind that I'm not very familiar with OLE programming.
I'm actually doing this from Powerbuilder.
I really appreciate your help.
Thanks
Junaid
> Hi Junaid,
>
[quoted text clipped - 20 lines]
> > Thanks
> > Junaid