MailMergeFieldNames Collection Object
Word Developer Reference |
A collection of MailMergeFieldName objects that represent the field names in a mail merge data source.
Remarks
Use the FieldNames property to return the MailMergeFieldNames collection. The following example displays the names of the fields in the data source attached to the active document.
Visual Basic for Applications |
---|
|
You cannot add names to the MailMergeFieldNames collection. When a field is added to a data source, the field name is automatically included in the MailMergeFieldNames collection. Use the EditDataSource method to edit the contents of a data source. The following example adds a data field named "Author" to a table in the data source attached to the active document.
Visual Basic for Applications |
---|
|
See Also