Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.17 KB

Excel.Chart.SetDefaultChart.md

File metadata and controls

43 lines (26 loc) · 1.17 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Chart.SetDefaultChart method (Excel)
vbaxl10.chm149182
vbaxl10.chm149182
Excel.Chart.SetDefaultChart
8be43de3-8b7d-4885-3e49-19aa0c65564f
04/16/2019
medium

Chart.SetDefaultChart method (Excel)

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

Syntax

expression.SetDefaultChart (Name)

expression A variable that represents a Chart object.

Parameters

Name Required/Optional Data type Description
Name Required Variant Specifies the name of the default chart template that will be used when creating new charts. This name can be a string naming a chart in the gallery for a user-defined template, or it can be a special constant xlBuiltIn (XlChartGallery) to specify a built-in chart template.

Example

This example sets the default chart template to the custom chart named Monthly Sales.

ActiveChart.SetDefaultChart Name:="Monthly Sales"

[!includeSupport and feedback]