Chart.Export (Word)

Exports the chart in a graphic format.

Export (FileName, FilterName, Interactive)


With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Export _ 
 FileName:="current_sales.gif", FilterName:="GIF" 
 End If 
End With

Arguments

The following argument is required

FileName (String) - The name of the exported file.

Optional arguments

The following arguments are optional

FilterName (String) - The language-independent name of the graphic filter as it appears in the registry.

Interactive (Boolean) - 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.