MailAddress-field in MailMerge

C

Christof Nordiek

I'm trying to do MailMerge by automating Word.
When I use the option SendToEmail as Destination,
how can I set the addressfield programmatically?
 
P

Peter Jamieson

Set the value of e.g.

ActiveDocument.MailMerge.MailAddressFieldName

to the name of the field you want to use.

or if you have a reference to the Mail Merge Main document called oDoc, set
the value of

oDoc.MailMerge.MailAddressFieldName

Peter Jamieson
 
C

Christof Nordiek

Thanks
that's what i searched.

Peter Jamieson said:
Set the value of e.g.

ActiveDocument.MailMerge.MailAddressFieldName

to the name of the field you want to use.

or if you have a reference to the Mail Merge Main document called oDoc,
set the value of

oDoc.MailMerge.MailAddressFieldName

Peter Jamieson
 

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