Export method (Excel Graph)
Exports the chart in a graphic format. Returns a value of type Boolean.
Syntax
expression.Export (FileName, FilterName, Interactive)
expression Required. An expression that returns 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. If this argument is False, Graph uses the default values for the filter. The default value is False. |
Example
This example exports the chart as a GIF file.
myChart.Export _
FileName:="current_sales.gif", FilterName:="GIF"
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for