Skip to content
本页内容

Value (属性)

返回或设置一个 str 值,它代表规定名称去引用的公式。

示例

python
#本示例显示活动工作簿中索引号为4的名称所引用的公式
def test():
    print(ActiveWorkbook.Names.Item(4).Value)
python
#本示例给索引号为3的名称设置所引用的公式
def test():
    Application.Names.Item(3).Value = "=Sheet1!$A$4"