Show AllShow All

ClearContents Method

ShowClearContents method as it applies to the ChartArea object.

ShowClearContents method as it applies to the Range object.

Example

This example clears the formulas from cells A1:G37 on the datasheet but leaves the formatting intact.

myChart.Application.DataSheet.Range("A1:G37").ClearContents
		

This example clears the chart data from a chart but leaves the formatting intact.

myChart.ChartArea.ClearContents