Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'd like to sorty information I have in excel, that I've color coded. Is
there anyway to sort this list of #'s by color ? I heard that you can create a macro to do this, but I don't know how to do it. |
#2
![]() |
|||
|
|||
![]()
Check out Chip Pearson's site:
http://www.cpearson.com/excel/SortByColor.htm tj "PJ456" wrote: I'd like to sorty information I have in excel, that I've color coded. Is there anyway to sort this list of #'s by color ? I heard that you can create a macro to do this, but I don't know how to do it. |
#3
![]() |
|||
|
|||
![]()
hi,
the technique involves assigning a number to a helper column at the end of the data then sorting by the helper column. example sub setcolor() dim c as range dim c2 as range set c = range("A1") do while not is empty(c) set c2 = c.offset(1,0) if c.interia.colorindex = 5 then c.offset(0,10).value = 1 else if c.interia.colorindex = 20 then c.offset(0,10).value = 2 end if end if set c = c2 loop regards Frank -----Original Message----- I'd like to sorty information I have in excel, that I've color coded. Is there anyway to sort this list of #'s by color ? I heard that you can create a macro to do this, but I don't know how to do it. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
How do I stop Excel from prompting to enable or disable macros? | Excel Discussion (Misc queries) | |||
How do I update Excel 2000 macros to work in Excel 2002? | Excel Discussion (Misc queries) | |||
can a workbook with macros created in excel 2003 work in excel 20. | Excel Discussion (Misc queries) | |||
Excel 2003 "File Open": how keep folders at top with sort by Date. | Excel Discussion (Misc queries) |