返回或设置批注的作者。
String 类型,只读。
语法
表达式.Author
表达式 一个代表 Comment 对象的变量。
示例
本示例删除活动工作表中由 Jean Selva 添加的所有批注。
示例代码 |
let myComments = ActiveSheet.Comments
for(let c = 1;c <= myComments.Count;c++) {
if(myComments.Item(c).Author == "Jean Selva") {
myComments.Item(c).Delete()
}
}
|