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
 
Top