次の方法で共有


Chart.SaveChartTemplate Method (Word)

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

Version Information

Version Added: Word 2007

Syntax

expression .SaveChartTemplate(FileName)

expression A variable that represents a Chart object.

Parameters

Name

Required/Optional

Data Type

Description

FileName

Required

String

The name of the chart template.

Remarks

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.

Example

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

Concepts

Chart Object

Chart Object Members