Partager via


ChartSheet.SaveChartTemplate Method

Saves the chart on the ChartSheet as a custom template in the list of available chart templates.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
Sub SaveChartTemplate ( _
    Filename As String _
)
void SaveChartTemplate(
    string Filename
)

Parameters

  • Filename
    Type: System.String

    The name of the new chart template.

Remarks

By default, this method saves the current chart to the user's chart template directory. If a UNC or URL is specified, the chart will be saved to the specified location instead.

.NET Framework Security

See Also

Reference

ChartSheet Interface

Microsoft.Office.Tools.Excel Namespace