FormatCondition Object Members

Excel Developer Reference

Represents a conditional format.

Methods

  Name Description
Bb242266.methods(en-us,office.12).gif Delete Deletes the object.
Bb242266.methods(en-us,office.12).gif Modify Modifies an existing conditional format.
Bb242266.methods(en-us,office.12).gif ModifyAppliesToRange Sets the cell range to which this formatting rule applies.
Bb242266.methods(en-us,office.12).gif SetFirstPriority Sets the priority value for this conditional formatting rule to "1" so that it will be evaluated before all other rules on the worksheet.
Bb242266.methods(en-us,office.12).gif SetLastPriority Sets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet.

Properties

  Name Description
Bb242266.properties(en-us,office.12).gif Application When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.
Bb242266.properties(en-us,office.12).gif AppliesTo Returns a Range object specifying the cell range to which the formatting rule is applied.
Bb242266.properties(en-us,office.12).gif Borders Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format).
Bb242266.properties(en-us,office.12).gif Font Returns a Font object that represents the font of the specified object.
Bb242266.properties(en-us,office.12).gif Formula1 Returns the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference, or a formula. Read-only String.
Bb242266.properties(en-us,office.12).gif Formula2 Returns the value or expression associated with the second part of a conditional format or data validation. Used only when the data validation conditional format Operator property is xlBetween or xlNotBetween. Can be a constant value, a string value, a cell reference, or a formula. Read-only String.
Bb242266.properties(en-us,office.12).gif Interior Returns an Interior object that represents the interior of the specified object.
Bb242266.properties(en-us,office.12).gif NumberFormat Returns or sets the number format applied to a cell if the conditional formatting rule evaluates to True. Read/write Variant.
Bb242266.properties(en-us,office.12).gif Operator Returns a Long value that represents the operator for the conditional format.
Bb242266.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb242266.properties(en-us,office.12).gif Priority Returns or sets the priority value of the conditional formatting rule. The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet.
Bb242266.properties(en-us,office.12).gif PTCondition Returns a Boolean value indicating if the conditional format is being applied to a PivotTable chart. Read-only.
Bb242266.properties(en-us,office.12).gif ScopeType Returns or sets one of the constants of the XlPivotConditionScope enumeration, which determines the scope of the conditional format when it is applied to a PivotTable chart.
Bb242266.properties(en-us,office.12).gif StopIfTrue Returns or sets a Boolean value that determines if additional formatting rules on the cell should be evaluated if the current rule evaluates to True.
Bb242266.properties(en-us,office.12).gif Text Returns or sets a String value specifying the text string used by the conditional formatting rule.
Bb242266.properties(en-us,office.12).gif TextOperator Returns or sets one of the constants of the XlContainsOperator enumeration specifying the text search performed by the conditional formatting rule.
Bb242266.properties(en-us,office.12).gif Type Returns a Long value, containing a xlFormatConditionType value, that represents the object type.