Skip to content
本页内容

Visible (属性)

返回或设置一个 bool 值,它确定对象是否可见。可读写。

示例

python
#本示例隐藏单元格 A2 中的批注
def test():
    Application.Range("A2").Comment.Visible = False
python
#本示例显示 A4 单元格的批注是否可见
def test():
    print(Application.Range("A4").Comment.Visible)