_Application.AddChartAutoFormat Method

Adds a custom chart autoformat to the list of available chart autoformats.

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

Syntax

'Declaration
Sub AddChartAutoFormat ( _
    Chart As Object, _
    Name As String, _
    Description As Object _
)
'Usage
Dim instance As _Application
Dim Chart As Object
Dim Name As String
Dim Description As Object

instance.AddChartAutoFormat(Chart, Name, _
    Description)
void AddChartAutoFormat(
    Object Chart,
    string Name,
    Object Description
)

Parameters

  • Chart
    Type: System.Object

    Required Object. A chart that contains the format that will be applied when the new chart autoformat is applied.

  • Name
    Type: System.String

    Required String. The name of the autoformat.

  • Description
    Type: System.Object

    Optional Object. A description of the custom autoformat.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace