Skip to content
本页内容

Author (属性)

返回或设置批注的作者。str 类型,只读。

示例

python
#本示例删除活动工作表中由 Jean Selva 添加的所有批注
def test():
    myComments = Application.ActiveSheet.Comments
    for c in range(1, myComments.Count):
        if myComments.Item(c).Author == "Jean Selva":
            myComments.Item(c).Delete()
python
#本示例显示第一张工作表中 D5 单元格中批注的作者
def test():
    print(Worksheets.Item(1).Range("D5").Comment.Author)