Chart.SaveChartTemplate method (PowerPoint)

Saves a custom chart template to the list of available chart templates.


expression.SaveChartTemplate (FileName)

expression A variable that represents a Chart object.


Name Required/Optional Data type Description
FileName Required String The name of the chart template.


By default, this method saves the active 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.



Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example adds a new chart template based on the first chart of the active document.

With ActiveDocument.InlineShapes(1)
    If .HasChart Then
        .Chart.SaveChartTemplate _
            FileName:="Presentation Chart"
    End If
End With

See also

Chart Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.