Skip to content
本页内容

Delete (方法)

删除对象。

示例

python
#本示例从活动工作簿中删除名称“test”
def test():
    ActiveWorkbook.Names.Item("test").Delete()
python
#本示例从 Sheet1 中删除名称“test1”
def test():
    Application.Worksheets.Item("Sheet1").Names.Item("test1").Delete()