How, or can I, sort rows by color?
How, or can I, sort rows by color?
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?
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks