Syntax: Parameters: Name Required / Optional Data Type Type Required XlFormatConditionType Operator Optional Variant Formula1 Optional Variant Formula2 Optional Variant
Name Description xlAboveAverageCondition Above average condition xlBlanksCondition Blanks condition xlCellValue Cell value xlColorScale Color scale xlDatabar Databar xlErrorsCondition Errors condition xlExpression Expression XlIconSet Icon set xlNoBlanksCondition No blanks condition xlNoErrorsCondition No errors condition xlTextString Text string xlTimePeriod Time period xlTop10 Top 10 values xlUniqueValues Unique values
Operators: Name xlBetween xlEqual xlGreater xlGreaterEqual xlLess xlLessEqual xlNotBetween xlNotEqual
If Type is xlExpression, the Operator argument is ignored.
Formatting by text contains: Operators: Name Description xlBeginsWith Begins with a specified value. xlContains Contains a specified value. xlDoesNotContain Does not contain the specified value. xlEndsWith Endswith the specified value
Operators: Name xlYesterday xlTomorrow xlLast7Days xlLastWeek xlThisWeek xlNextWeek xlLastMonth xlThisMonth xlNextMonth
Highlighting Duplicate Values Highlighting Unique Values Highlighting Top 5 Values Operators: Name Description XlAboveAverage Above average XlAboveStdDev Above standard deviation XlBelowAverage Below average XlBelowStdDev Below standard deviation XlEqualAboveAverage Equal above average XlEqualBelowAverage Equal below average
(opens new window)
IconSet: Name xl3Arrows xl3ArrowsGray xl3Flags xl3Signs xl3Stars xl3Symbols xl3Symbols2 xl3TrafficLights1 xl3TrafficLights2 xl3Triangles xl4Arrows xl4ArrowsGray xl4CRV xl4RedToBlack xl4TrafficLights xl5Arrows xl5ArrowsGray xl5Boxes xl5CRV xl5Quarters
(opens new window)
Type: Name xlConditionValuePercent xlConditionValueNumber xlConditionValuePercentile xlConditionValueFormula
Operator: Name Value xlGreater 5 xlGreaterEqual 7
Value: Returns or sets the threshold value for an icon in a conditional format.
You cannot define more than three conditional formats for a range. Use the Modify method to modify an existing conditional format, or use the Delete method to delete an existing format before adding a new one.