Search.Filter Property
Outlook Developer Reference |
Returns the DASL statement used to restrict the search to a specified subset of data. Read-only
Syntax
expression.Filter
expression A variable that represents a Search object.
Remarks
This property is set as the
Filter
argument in the Application object's AdvancedSearch method.
When searching Text fields, you can use either an apostrophe (') or double quotation marks ("") to delimit the values that are part of the filter. For example, all of the following lines function correctly when the field is of type String:
|
|
|
Example
The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example creates a new Search object. The event subroutine fires after the search has finished and displays the Tag and Filter properties of the Search object in addition to the results of the search.
Visual Basic for Applications |
---|
|
Use an AdvancedSearchComplete event subroutine to ensure the integrity of the data stored in the Search object.
Visual Basic for Applications |
---|
|
See Also