Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional formatting; .interior.color (cell property)

Status
Not open for further replies.

larryww

Programmer
Mar 6, 2002
193
US
I have a routine that looks for shaded cells with
For Each c In ActiveSheet.UsedRange
If c.Interior.Color <> ActiveWorkbook.Styles.Application.Cells.Interior.Color Then

However this apparently doesn't catch conditionally formatted cells. c.Color doesn't get it. Since there's no @#$%ing c.BackgroundColor or c.PatternColor, what can I reference that has the conditional formatting?

Well, what do you know, I just found it - sort of - while typing this: c.FormatConditions.Interior.Color. HOWEVER ... it seems to always be the conditional color - i.e., this alone is not triggered by the &quot;conditional condition.&quot;

So, my question is, is there a variable that contains the displayed color?

Better still, is there a variable that tells if the conditional formatting has been tripped?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top