Export (0) Print
Expand All

Clear Method

Office 2003

Deletes every chart in the chart workspace and resets all the formatting to the default values.

expression.Clear

expression    An expression that returns a ChartSpace object.

Deletes all formatting and data from the specified range.

expression.Clear

expression    An expression that returns a Range object.

Example

This example deletes all charts in the specified chart workspace.

ChartSpace1.Clear
				

This example clears the range B2:C4 on the active worksheet in Spreadsheet1.

Spreadsheet1.ActiveSheet.Range("B2:C4").Clear
				




Show:
© 2015 Microsoft