應用于 ChartArea 對象的 ClearContents 方法。
expression.ClearContents
expression 必需。該表達式返回上面的對象之一。
應用于 Range 對象的 ClearContents 方法。
清除指定區(qū)域的公式。
expression.ClearContents
expression 必需。該表達式返回上面的對象之一。
本示例清除數(shù)據(jù)表上單元格區(qū)域 A1:G37 中的公式,但保留其中的格式不變。
myChart.Application.DataSheet.Range("A1:G37").ClearContents
本示例清除圖表中的數(shù)據(jù),但保留其中的格式不變。
myChart.ChartArea.ClearContents