MailMergeDataSource.DataFields Property
Word Developer Reference |
Returns a MailMergeDataFields collection that represents the fields in the specified mail merge data source. Read-only.
Syntax
expression.DataFields
expression A variable that represents a MailMergeDataSource object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example displays the name of each field in the data source attached to the active mail merge main document.
Visual Basic for Applications |
---|
|
This example displays the value of the LastName field from the first record in the data source attached to "Main.doc."
Visual Basic for Applications |
---|
|
See Also