ColorScaleCriterion.Index property (Excel)

Returns a Long value indicating which threshold the criteria represents. Read-only.

Syntax

expression.Index

expression A variable that represents a ColorScaleCriterion object.

Remarks

For a two-color scale conditional formatting rule, this property will return a value of "1" for the minimum threshold and "2" for the maximum threshold. When using a three-color scale rule, the values will be "1" for the minimum, "2" for the midpoint, and "3" for the maximum thresholds.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.