Range.FormatConditions Property

Excel Developer Reference

Returns a FormatConditions collection that represents all the conditional formats for the specified range. Read-only.

Syntax

expression.FormatConditions

expression A variable that represents a Range object.

Example

This example modifies an existing conditional format for cells E1:E10.

Visual Basic for Applications
  Worksheets(1).Range("e1:e10").FormatConditions(1) _
    .Modify xlCellValue, xlLess, "=$a$1"

See Also