FormatConditions.Item Method (Excel)

Returns a single object from a collection.

Syntax

.Item(Index)

A variable that represents a FormatConditions object.

Parameters

Name

Required/Optional

Data Type

Description

Index

필수

Variant

The name or index number for the object.

Return Value

An Object value that represents an object contained by the collection.

Example

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

With Worksheets(1).Range("e1:e10").FormatConditions.Item(1) 
 With .Borders 
 .LineStyle = xlContinuous 
 .Weight = xlThin 
 .ColorIndex = 6 
 End With 
End With

참고 항목

개념

FormatConditions Object

FormatConditions Object Members