Filter columns by fill colour

A

Ascesis

How do I filter columns by the colour the cells have been filled with?

I've tried all kinds of hexadecimal junk with the advanced filter, with
no luck.



Your help will be appreciated.
 
M

m96

actually i'm using something like:


currentColor = activecell.interior.colorindex

for each c in usedrange.columns(activecell.column).cells
if cell.interior.colorindex = currentColor then
c.entirerow.hidden = false
else
c.entirerow.hidden = true
end if
next c

and if you still want to show the first row (e.g. column header) then

range("A1").entirerow.hidden = false


hope this helps.

cheers.
 
Top