Skip to content
本页内容

AddComment (方法)

为区域添加批注。

参数

属性数据类型必填说明
TextAny可选批注文字。

返回值

Comment

示例

python
#本示例为第一张工作表中 E5 单元格添加批注
def test():
    Worksheets.Item(1).Range("E5").AddComment("Current Sales")
python
#本示例为 A1 单元格添加批注 a1
def test():
    Application.Cells.Item(1, 1).AddComment("a1")