FormatColor Object
Excel Developer Reference |
Represents the fill color specified for a threshold of a color scale conditional format or the color of the bar in a data bar conditional format.
Version Information
Version Added: Excel 2007
Remarks
You can choose a color by passing an RGB value in the Color property or designate the color by indexing into the theme color palette using the ThemeColor property.
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