Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
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, for example, PNG or GIF. PNG is the default if no value is supplied. |
| Interactive | Optional | Variant | N/A |
Example
The following code example exports the currently selected shape as a .GIF if the shape contains a chart.
With ActiveWindow.Selection.ShapeRange(1)
If .HasChart Then
.Chart.Export _
FileName:="current_sales.gif", FilterName:="GIF"
End If
End With
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.