主题
AddComment (方法)
为区域添加批注。
参数
属性 | 数据类型 | 必填 | 说明 |
---|---|---|---|
Text | Any | 可选 | 批注文字。 |
返回值
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")