SetDefaultChart Method
Specifies the name of the chart template that Microsoft Graph will use when creating new charts.
expression.SetDefaultChart(FormatName, Gallery)expressionRequired. An expression that returns one of the objects in the Applies To list.FormatNameOptional 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 xlBuiltInto specify the built-in chart template.Gallery Optional Variant.
Example
This example sets the default chart template to the custom autoformat named "Monthly Sales."
|