MailMergeDataSource.SetAllIncludedFlags Method
Word Developer Reference |
Includes or excludes flagged records in a data source from a mail merge.
Syntax
expression.SetAllIncludedFlags(Included)
expression Required. A variable that represents a MailMergeDataSource object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Included | Required | Boolean | True to include all data source records in a mail merge. False to exclude all data source records from a mail merge. |
Remarks
You can set individual records in a data source to be included in or excluded from a mail merge using the Included property.
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