Filter columns by fill colour

  • Thread starter Thread starter Ascesis
  • Start date Start date
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.
 
You could use a helper column to hold a code representing the colour,
eg R for Red, O for Orange, Y for Yellow etc. and filter on this
column. Chip Pearson has a lot of stuff about dealing with colours
here:

http://www.cpearson.com/excel/colors.htm

Hope this helps.

Pete
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top