Can I somehow find out if a cell is conditionally formatted? I don't mean if there is a CF rule in a particular cell, but if it is true.
My idea was to do something like this (in the immediate window) ?ActiveSheet.Range("D58").Interior.ColorIndex
, but this returns -4142
even though the cell is filled with blue.
For context: My CF is checking if a cell value matches the value of a calculation, like this: "=A1+A50<>A24"
and applies the CF if this is true. It's good to know if the two values don't match, it means somewhere there is a mistake. However, it'd be even better if I could, for example, insert a comment in cell A24
to show the user what result the calculation yields. Otherwise they have to check it for themselves.