Hey guys and girls,
I would like to filter out all rows that do not have a special color in colomn L.
I have found this code, but it seems to work only with Interior.ColorIndex.
Colomn L has conditional formatting in my sheet and though some cells are in red now (based on conditional format), this code will still hide these rows.
My goal is to hide only not colored cells in colomn L: so only hide cell 'No coloring' and do not hide red and green cells.
Can onyone help me out here?
With ActiveSheet
.Rows.Hidden = False
For i = .UsedRange.Rows.Count To 3 Step -1
If .Cells(i, 12).Interior.ColorIndex = -4142 Then .Rows(i).Hidden = True
Next
End With
I would like to filter out all rows that do not have a special color in colomn L.
I have found this code, but it seems to work only with Interior.ColorIndex.
Colomn L has conditional formatting in my sheet and though some cells are in red now (based on conditional format), this code will still hide these rows.
My goal is to hide only not colored cells in colomn L: so only hide cell 'No coloring' and do not hide red and green cells.
Can onyone help me out here?
With ActiveSheet
.Rows.Hidden = False
For i = .UsedRange.Rows.Count To 3 Step -1
If .Cells(i, 12).Interior.ColorIndex = -4142 Then .Rows(i).Hidden = True
Next
End With