Edit

Share via


ChartArea.Clear method (Excel)

Clears the entire object.

Syntax

expression.Clear

expression A variable that represents a ChartArea object.

Return value

Variant

Example

This example clears the chart area (the chart data and formatting) of Chart1.

Charts("Chart1").ChartArea.Clear 
 

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.