Item Property (Styles Collection)

Applies To

Styles collection object.

Description

Returns a single Style object from a Styles collection.

Syntax

expression.Item(Index)

expression Required. An expression that returns a Styles object.

Index Required Variant. The name or index number of the style.

Example

This example changes the Normal style for the active workbook by setting the style's Bold property.

ActiveWorkbook.Styles.Item("Normal").Font.Bold = True