Chart.Export Method (Word)
Exports the chart in a graphic format.
Version Information
Version Added: Word 2007
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