MailMergeFilters.Add method (Publisher)
Adds a new filter criterion to the specified MailMergeFilters object.
Syntax
expression.Add (Column, Comparison, Conjunction, bstrCompareTo, DeferUpdate)
expression A variable that represents a MailMergeFilters object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Column | Required | String | The name of the table in the data source. |
Comparison | Required | MsoFilterComparison | How the data in the table is filtered. Can be one of the MsoFilterComparison constants. |
Conjunction | Required | MsoFilterConjunction | How this filter relates to other filters in the MailMergeFilters object. Can be one of the MsoFilterConjunction constants. |
bstrCompareTo | Optional | String | If the Comparison argument is something other than msoFilterComparisonIsBlank or msoFilterComparisonIsNotBlank, bstrCompareTo is a string to which the data in the table is compared. |
DeferUpdate | Optional | Boolean | True to queue the filters and apply them when the ApplyFilter method is called. False to apply the filter condition immediately. Default is False. |
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for