Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
How, or can I, sort rows by color?
|
#2
![]() |
|||
|
|||
![]()
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" wrote in message ... How, or can I, sort rows by color? |
#3
![]() |
|||
|
|||
![]() 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 -- olasa ------------------------------------------------------------------------ olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760 View this thread: http://www.excelforum.com/showthread...hreadid=378657 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
Sorting 1, 1A, 2, 2A, 3, 4, 4A, 4B . . . | Excel Discussion (Misc queries) | |||
sorting number in ascending order | Excel Discussion (Misc queries) | |||
SORTING question | New Users to Excel | |||
Adding a KeyID column for sorting | New Users to Excel |