ColorScaleCriterion.Value property (Excel)

Returns or sets the minimum, midpoint, or maximum threshold value for a color scale conditional format. Read/write Variant.

Syntax

expression.Value

expression A variable that represents a ColorScaleCriterion object.

Remarks

You can set the value only if the Type property for the conditional format is set to one of the following XlConditionValueTypes constants: xlConditionValueNumber, xlConditionValuePercent, xlConditionValuePercentile, or xlConditionValueFormula.

If the type of threshold is a formula, you can set the formula as a String. The formula must return a single number.

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.