ClearContents 方法

此頁沒有內(nèi)容條目
內(nèi)容

expandtri全部顯示

blueup應用于 ChartArea 對象的 ClearContents 方法。

清除圖表中的數(shù)據(jù)但保留格式設置。

expression.ClearContents

expression   必需。該表達式返回上面的對象之一。

 

blueup應用于 Range 對象的 ClearContents 方法。

清除指定區(qū)域的公式。

expression.ClearContents

expression   必需。該表達式返回上面的對象之一。

 

示例

本示例清除數(shù)據(jù)表上單元格區(qū)域 A1:G37 中的公式,但保留其中的格式不變。

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

本示例清除圖表中的數(shù)據(jù),但保留其中的格式不變。

myChart.ChartArea.ClearContents