Chart.Export method (Word)

Exports the chart in a graphic format.

Syntax

expression.Export (FileName, FilterName, Interactive)

expression A variable that represents a Chart object.

Parameters

Name Required/Optional Data type Description
FileName Required String The name of the exported file.
FilterName Optional Variant The language-independent name of the graphic filter as it appears in the registry.
Interactive Optional Variant True to display the dialog box that contains the filter-specific options. False to indicate that Word should use the default values for the filter. The default is False.

Return value

A Boolean value that indicates whether the export was successful.

Example

The following example exports the first chart in the active document as a GIF file.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Export _ 
 FileName:="current_sales.gif", FilterName:="GIF" 
 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.