DeleteChartAutoFormat Method

Microsoft Excel Visual Basic

Removes a custom chart autoformat from the list of available chart autoformats.

expression.DeleteChartAutoFormat(Name)

expression    Required. An expression that returns an Application object.

Name    Required String. The name of the custom autoformat to be removed.

Example

This example deletes the custom autoformat named "Presentation Chart."

Application.DeleteChartAutoFormat name:="Presentation Chart"