【问题标题】:Check whether Conditional Formatting is applied or not检查是否应用了条件格式
【发布时间】:2013-06-15 09:08:26
【问题描述】:

使用 Excel VBA 代码有什么方法可以检查 特定单元格是否满足条件格式?

我在单列中有超过 80000 个单元格的数据。

我使用了以下代码,但无论是否应用了代码格式,它都为 Interior.ColorIndex 或 Interior.PatternIndex 或 Font.Bold 提供相同的值

Sub Check_CF()
    MsgBox Range("B4").Interior.PatternColorIndex
End Sub

我的条件格式规则并不重要。如果我能够检查它是否被应用,我可以更改规则。

请帮忙。提前致谢。

【问题讨论】:

    标签: vba excel conditional-formatting


    【解决方案1】:

    找到这篇相当长的文章,其中包含可能对您有所帮助的主题示例函数: http://www.xldynamic.com/source/xld.CFConditions.html

    【讨论】:

      猜你喜欢
      • 2014-05-28
      • 2015-12-07
      • 1970-01-01
      • 2020-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多