Workbook.Styles Property

Excel Developer Reference

Returns a Styles collection that represents all the styles in the specified workbook. Read-only.

Syntax

expression.Styles

expression   A variable that represents a Workbook object.

Example

This example deletes the user-defined style "Stock Quote Style" from the active workbook.

Visual Basic for Applications
  ActiveWorkbook.Styles("Stock Quote Style").Delete

See Also