ColorScaleCriteria.Count property (Excel)

Returns a Long value that specifies the number of criteria for a color scale conditional formatting rule. Read-only.

Syntax

expression.Count

expression A variable that represents a ColorScaleCriteria object.

Remarks

The number of criteria is equivalent to the number of threshold values assigned for a color scale. This will be either two or three, depending on whether you use a two-color scale or a three-color scale for the conditional formatting rule.

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.