SetDefaultChart Method
Applies To
Application object.
Description
Specifies the name of the chart template that Microsoft Graph will use when creating new charts.
Syntax
expression.SetDefaultChart(FormatName)
expression Required. An expression that returns an Application object.
FormatName Optional Variant. The name of the specified custom autoformat. This name can be a string that denotes the custom autoformat, or it can be the special constant xlBuiltIn to specify the built-in chart template.
Example
This example sets the default chart template to the custom autoformat named "Monthly Sales."
myChart.Application.SetDefaultChart FormatName:="Monthly Sales"