SetDefaultChart Method

         Example         Applies To

Specifies the name of the chart template that Microsoft Excel will use when creating new charts.

Syntax

expression.SetDefaultChart(FormatName)

expression   Required. An expression that returns an Application object.

FormatName    Optional Variant. Specifies the name of a custom autoformat. This name can be a string naming a custom autoformat, or it can be the special constant xlBuiltIn to specify the built-in chart template.