MailMergeDataSource.SetAllErrorFlags Method
Word Developer Reference |
Marks all records in a mail merge data source as containing invalid data in an address field.
Syntax
expression.SetAllErrorFlags(Invalid, InvalidComment)
expression Required. A variable that represents a MailMergeDataSource object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Invalid | Required | Boolean | True marks all records in the data source of a mail merge as invalid. |
InvalidComment | Required | String | Text describing the invalid setting. |
Remarks
You can individually mark data source records that contain invalid data in an address field by using the InvalidAddress and InvalidComments properties.
Example
This example marks all records in the data source as containing an invalid address field, sets a comment as to why it is invalid, and excludes all records from the mail merge.
Visual Basic for Applications |
---|
|
See Also