Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is possible to order line in sheet based 2 key, color in column AF and
value in column AE???? In column AF to have many cells with value colourindex=3 (red) And in column AE have only number. I want to order by first key the value colored in AF and second key value in AE... The range is A5:AF150 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You cannot do it using the sort method, since VBA will not automatically read
the color index as data. It is possible to write code that would sort the colors by color index, but I personally see no value to it when other more simple means are available. "sal21" wrote: Is possible to order line in sheet based 2 key, color in column AF and value in column AE???? In column AF to have many cells with value colourindex=3 (red) And in column AE have only number. I want to order by first key the value colored in AF and second key value in AE... The range is A5:AF150 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One methode is to create your own VBA function like below
Function getcolor(target As Range) getcolor = target.Interior.ColorIndex End Function call on worksheet with =getcolor(AF5) Add the function to an auxilary column. Then sort using the new auxilary column. "sal21" wrote: Is possible to order line in sheet based 2 key, color in column AF and value in column AE???? In column AF to have many cells with value colourindex=3 (red) And in column AE have only number. I want to order by first key the value colored in AF and second key value in AE... The range is A5:AF150 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
For chart syles, why doesn't color order match series order? | Charts and Charting in Excel | |||
Change default series line color order | Excel Discussion (Misc queries) | |||
I would like to add a base line to a chart ... | Charts and Charting in Excel | |||
Series order conflicts with line order | Charts and Charting in Excel | |||
I want to link my order form with my data base list | Excel Discussion (Misc queries) |