_Application.SetDefaultChart Method

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

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

Syntax

'Declaration
Sub SetDefaultChart ( _
    FormatName As Object, _
    Gallery As Object _
)
'Usage
Dim instance As _Application
Dim FormatName As Object
Dim Gallery As Object

instance.SetDefaultChart(FormatName, _
    Gallery)
void SetDefaultChart(
    Object FormatName,
    Object Gallery
)

Parameters

  • FormatName
    Type: System.Object

    Optional Object. 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.

  • Gallery
    Type: System.Object

    Optional Object. Specifies the name of a gallery.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace