+ Reply to Thread
Results 1 to 7 of 7

Cell-Color searching function

  1. #1
    Registered User
    Join Date
    05-21-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    7

    Cell-Color searching function

    Hi!

    I'm looking for any possibility of a function that can start of from a particular cell, and move up until it hits a cell with a certain color. Then, I simply want it to output the name of that cell.

    Is that possible?
    Last edited by jrodri14; 05-23-2010 at 01:05 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell-Color searching function

    jrodri14
    maybe..in a kinda roundabout fashion
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Cell-Color searching function

    also three is the colour red

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Cell-Color searching function

    Quote Originally Posted by pike View Post
    jrodri14
    maybe..in a kinda roundabout fashion
    Please Login or Register  to view this content.
    I think he wants cell color, not font color.
    If so change to
    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  5. #5
    Registered User
    Join Date
    05-21-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Cell-Color searching function

    So, I guess there is no way to ask it to start off from a particular cell, and look for the first cell above it with that particular color?

  6. #6
    Registered User
    Join Date
    07-29-2009
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Cell-Color searching function

    I think I get what you want, here's my solution.


    Please Login or Register  to view this content.
    Last edited by justinvalle; 05-23-2010 at 01:27 AM.

  7. #7
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Cell-Color searching function

    Quote Originally Posted by jrodri14 View Post
    So, I guess there is no way to ask it to start off from a particular cell, and look for the first cell above it with that particular color?
    This sub will find the 1st cell above the current selection with the same cell color as the selection. Or if you know the ColorIndex that you want to locate, call it with the ColorIndex you want
    Didn't test it, so let me know if it doesn't work right.
    Edited to put in calling from different selection.
    Please Login or Register  to view this content.
    Last edited by foxguy; 05-23-2010 at 02:10 AM.

+ 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