返回操作符,该操作符与应用于指定筛选的两个条件相关联。XlAutoFilterOperator 类型,只读。
XlAutoFilterOperator 可为以下 XlAutoFilterOperator 常量之一。 |
xlAnd |
xlBottom10Percent |
xlTop10Items |
xlBottom10Items |
xlOr |
xlTop10Percent |
expression.Operator
expression 必需。该表达式返回上面对象之一。
应用于 FormatCondition 和 Validation 对象的 Operator 属性。
返回条件格式或数据有效性操作符。Long 类型,只读。
expression.Operator
expression 必需。该表达式返回上述对象之一。
应用于 FormatCondition 对象的 Operator 属性。
如果单元格区域 E1:E10 的条件格式一的公式指定的是“小于 5”,则本示例将对其进行更改。
With Worksheets(1).Range("e1:e10").FormatConditions(1)
If .Operator = xlLess And .Formula1 = "5" Then
.Modify xlCellValue, xlBetween, "5", "15"
End If
End With