Styles Property

Microsoft Excel Visual Basic

Styles Property

       

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

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

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

ActiveWorkbook.Styles("Stock Quote Style").Delete