+ Reply to Thread
Results 1 to 3 of 3

Sorting

  1. #1
    Elizabeth
    Guest

    Sorting

    How, or can I, sort rows by color?

  2. #2
    David McRitchie
    Guest

    Re: Sorting

    Hi Elizabeth,
    see Chip Pearson's Sorting By Cell Color
    http://www.cpearson.com/excel/SortByColor.htm
    I hope he mentions that it is not a good practice for several reasons
    any one of them would be adequate.

    --
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Elizabeth" <[email protected]> wrote in message news:[email protected]...
    > How, or can I, sort rows by color?




  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Insert a seperate Column.
    Then write this formula =CellColor(A2) and copy down the formula


    To make the =CellColor(A2) function work: Alt+F11 > Insert Module > Copy and paste the below VBA-code:

    Public Function CellColor(myCell As Range) As Variant
    Application.Volatile True
    CellColor = myCell.Interior.ColorIndex
    End Function


    Ola Sandstrom

+ 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