+ Reply to Thread
Results 1 to 4 of 4

Filter columns by fill colour

  1. #1
    Registered User
    Join Date
    07-26-2006
    Posts
    12

    Filter columns by fill colour

    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.

  2. #2
    Pete_UK
    Guest

    Re: Filter columns by fill colour

    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

    Ascesis wrote:
    > 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.
    >
    >
    > --
    > Ascesis
    >
    >
    > ------------------------------------------------------------------------
    > Ascesis's Profile: http://www.excelforum.com/member.php...o&userid=36801
    > View this thread: http://www.excelforum.com/showthread...hreadid=567487



  3. #3
    Bob Phillips
    Guest

    Re: Filter columns by fill colour

    See http://www.rondebruin.nl/easyfilter.htm

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Ascesis" <Ascesis.2bx4zf_1154532013.6322@excelforum-nospam.com> wrote in
    message news:Ascesis.2bx4zf_1154532013.6322@excelforum-nospam.com...
    >
    > 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.
    >
    >
    > --
    > Ascesis
    >
    >
    > ------------------------------------------------------------------------
    > Ascesis's Profile:

    http://www.excelforum.com/member.php...o&userid=36801
    > View this thread: http://www.excelforum.com/showthread...hreadid=567487
    >




  4. #4
    m96
    Guest

    Re: Filter columns by fill colour

    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.


    Ascesis wrote:
    > 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.
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1