Filter Object
Represents a filter for a single column.
Remarks
The Filter object is a member of the Filters collection. The Filters collection contains all the filters in an autofiltered range.
Example
Use Filters(), where is the filter title or index number, to return a single Filterobject. The following example sets a variable to the value of the Onproperty of the filter for the first column in the filtered range on the Crew worksheet.
| Visual Basic for Applications |
|---|
|
Note that all the properties of the Filter object are read-only. To set these properties, apply autofiltering manually or using the AutoFilter method of the Range object, as shown in the following example.
| Visual Basic for Applications |
|---|
|
See also:
| index | index |