Chart.Export Method (PowerPoint)
Exports the chart in a graphic format.
Version Information
Version Added: PowerPoint 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
Note
Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.
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