MailMergeMappedDataFields.Item method (Publisher)
Returns an individual object in a specified collection.
Syntax
expression.Item (Index)
expression A variable that represents a MailMergeMappedDataFields object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Required | Variant | The number or name of the field or list box item to return. |
Return value
MailMergeMappedDataField
Example
This example returns the City field from a mapped data fields object.
Dim mmfTemp As MailMergeMappedDataField
Set mmfTemp = ActiveDocument.MailMerge _
.DataSource.MappedDataFields.Item(Index:="City")
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.