主题
Visible (属性)
返回或设置一个 bool 值,它确定对象是否可见。可读写。
示例
python
#本示例显示活动工作簿中索引为1的名称是否可见
def test():
print(ActiveWorkbook.Names.Item(1).Visible)
python
#本示例将 Sheet1 中名为“test1”的名称设置为不可见
def test():
Application.Worksheets.Item("Sheet1").Names.Item("test1").Visible = False