Compartilhar via


_Chart.SetDefaultChart Method

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub SetDefaultChart ( _
    Name As Object _
)
'Usage
Dim instance As _Chart
Dim Name As Object

instance.SetDefaultChart(Name)
void SetDefaultChart(
    Object Name
)

Parameters

  • Name
    Type: System.Object

    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 to specify a built-in chart template.

See Also

Reference

_Chart Interface

_Chart Members

Microsoft.Office.Interop.Excel Namespace