Skip to content
本页内容

ClearNotes (方法)

清除指定区域中所有单元格的批注和语音批注。

返回值

Any

示例

python
#本示例清除工作表 Sheet1 上从 A 列到 C 列中的所有批注和语音批注
def test():
    Worksheets.Item("Sheet1").Columns.Item("A:C").ClearNotes()
python
#本示例设置 A1 单元格的批注为 a1,A2 单元格的批注为 a2,并清除 A1 单元格的所有批注和语音批注
def test():
    Range("A1").AddComment("a1")
    Range("A2").AddComment("a2")
    Range("A1").ClearNotes()