ColorScaleCriteria Collection
Excel Developer Reference |
A collection of ColorScaleCriterion objects that represents all of the criteria for a color scale conditional format. Each criterion specifies the minimum, midpoint, or maximum threshold for the color scale.
Version Information
Version Added: Excel 2007
Remarks
To return the ColorScaleCriteria collection, use the ColorScaleCriteria property of the ColorScale object.
Example
The following code example creates a range of numbers and then applies a two-color scale conditional formatting rule to that range. The color for the minimum threshold is then assigned to red and the maximum threshold to blue by indexing into the ColorScaleCriteria collection to set individual criteria.
Visual Basic for Applications |
---|
|
See Also