April 2006
Beginner
1114 pages
98h 16m
English
chartarea.Clear( )
Clears the contents and formatting of the chart area. Clear has the same effect as using ClearContents and ClearFormats in turn. The following code demonstrates the different Clear methods:
Sub DemoClearChartArea( )
Dim chrt As Chart, ca As ChartArea
' Copy the chart.
ActiveChart.Copy , ActiveChart
' Get the copy.
Set chrt = ActiveChart
Set ca = chrt.ChartArea
ca.ClearFormats
' Wait a sec.
Application.Wait Now + 0.00001
ca.ClearContents
' Same as.
'ca.Clear
End SubRead now
Unlock full access