Class MailMergeFieldNames (Word VBA)
Word Object Model Reference To use a MailMergeFieldNames class variable it first needs to be instantiated, for example
Dim mmfs as MailMergeFieldNames
Set mmfs = ActiveDocument.MailMerge.DataSource.FieldNames
Count
Returns a Long that represents the number of mail merge field names in the collection.
Dim lngCount As Long
lngCount = ActiveDocument.MailMerge.DataSource.FieldNames.Count
Item
Returns an individual MailMergeFieldNames object in a collection.
Item (Index)
Index: The individual object to be returned.
Dim mmf As MailMergeFieldName
Set mmf = ActiveDocument.MailMerge.DataSource.FieldNames(Index:=1)