Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MailMergeField Interface

Represents a single mail merge field in a document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

'Declaration
<GuidAttribute("0002091E-0000-0000-C000-000000000046")> _
Public Interface MailMergeField
'Usage
Dim instance As MailMergeField

The MailMergeDataField object is a member of the MailMergeDataFields collection. The MailMergeDataFields collection includes all the mail merge related fields in a document.

Use Fields(index), where index is the index number, to return a single MailMergeField object.

Use the Add method to add a merge field to the MailMergeFields collection.

The MailMergeFields collection has additional methods, such as AddAsk and AddFillIn, for adding fields related to a mail merge operation.

Community Additions

ADD
Show:
© 2015 Microsoft