Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default peraphs impossible... order line base color...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default peraphs impossible... order line base color...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default peraphs impossible... order line base color...

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
For chart syles, why doesn't color order match series order? AMiller Charts and Charting in Excel 1 October 29th 09 12:02 AM
Change default series line color order Leonard Lan Excel Discussion (Misc queries) 5 July 2nd 08 03:02 AM
I would like to add a base line to a chart ... Dr. Darrell Charts and Charting in Excel 2 April 25th 07 11:42 AM
Series order conflicts with line order Cowtoon Charts and Charting in Excel 3 January 15th 06 08:43 PM
I want to link my order form with my data base list shorty Excel Discussion (Misc queries) 0 August 31st 05 06:11 PM


All times are GMT +1. The time now is 03:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"