Search notes:

Excel Object Model: Filter

A filter corresponds to a «condition» of a column in a range with an autoFilter.

Properties

application
count
creator
criteria1 and criteria2 Values that are used for filtering. If criteria2 is used, operator defines how they're related to one another.
on Boolean which indicates if this filter is applied to the range or not. In order for criteria1, criteria2 and operator to have a value, on needs to be true.
operator
parent

Values for operator

Name Value Description
xlAnd 1 Logical and of criteria1 and criteria2
xlBottom10Items 4 Lowest-valued items displayed (number of items specified in criteria1)
xlBottom10Percent 6 Lowest-valued items displayed (percentage specified in criteria1)
xlFilterCellColor 8 Color of the cell
xlFilterDynamic 11 Dynamic filter
xlFilterFontColor 9 Color of the font
xlFilterIcon 10 Filter icon
xlFilterValues 7 Filter values
xlOr 2 Logical or of criteria1 or criteria2
xlTop10Items 3 Highest-valued items displayed (number of items specified in criteria1)
xlTop10Percent 5 Highest-valued items displayed (percentage specified in criteria1)

Values for criteria

criteria1 and criteria2 can be assigned strings whose interpretion is as follows:

See also

The autoFilter object
Excel Object Model

Index