Consulting

Results 1 to 3 of 3

Thread: Sleeper: Sort columns by cell color

  1. #1

    Sleeper: Sort columns by cell color

    Maybe with color index value?

  2. #2
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    Sorting only works on a value. To get around this you could create a custom function to capture the color index of a cell in a hidden column, then sort by this column.


    Function SortColour(rng As Range) As Variant
        SortColour = rng.Interior.ColorIndex
    End Function


    Your formula in the sort column would be "=SortColour(A2)"

  3. #3
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    There is also some good stuff here .. http://www.cpearson.com/excel/SortByColor.htm .. at Chip Pearson's site.

Posting Permissions

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