Class MailMergeFields (Word VBA)
A collection of MailMergeField objects that represent the mail merge related fields in a document.
Class MailMerge gives access to class MailMergeFields.
Dim mmfs as MailMergeFields
Set mmfs = ActiveDocument.MailMerge.Fields
Methods
Add - Returns a MailMergeField object that represents a mail merge field added to the data source document.
AddAsk - Adds an ASK field to a mail merge main document. Returns a MailMergeField object.
AddFillIn - Adds a FILLIN field to a mail merge main document. Returns a MailMergeField object.
AddIf - Adds an IF field to a mail merge main document. Returns a MailMergeField object.
AddMergeRec - Adds a MERGEREC field to a mail merge main document. Returns a MailMergeField object.
AddMergeSeq - Adds a MERGESEQ field to a mail merge main document. Returns a MailMergeField object.
AddNext - Adds a NEXT field to a mail merge main document. Returns a MailMergeField object.
AddNextIf - Adds a NEXTIF field to a mail merge main document. Returns a MailMergeField object.
AddSet - Adds a SET field to a mail merge main document. Returns a MailMergeField object.
AddSkipIf - Adds a SKIPIF field to a mail merge main document. Returns a MailMergeField object.
Item - Returns an individual MailMergeField object in a collection.
Properties
Count returns a Long that represents the number of mail merge fields in the collection.