Skip to content
本页内容

Delete (方法)

删除指定的条件格式规则对象。

示例

python
#本示例删除第一张工作表上区域 A1:A10 中第一个色阶条件格式
def test():
    colorScale = Application.Worksheets.Item(1).Range("A1:A10").FormatConditions.Item(1)
    colorScale.Delete()
python
#本示例删除区域 A1:A10 中第二个色阶条件格式
def test():
    Range("A1:A10").FormatConditions.Item(2).Delete()