LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Sort Range by Font Color

Deleting always takes a long time when you delete one row at a time. To
speed the code, put an X in the rowss you want deleted in an auxilary column.
Then sort the worksheet using the auxilary column as the key in Descending
order. Then delete the rows with an X. You'll probably get 100 times
improvement in execution speed.

"RyanH" wrote:

I am looking for an easy way to sort a range by font color. The range is
made up of 14 columns and I want to sort by Col. 12. Col. 12 has empty
cells, cells with font color index = 15 and cells with font color index =
xlAutomatic. I want to delete all the rows that don't have a font color
index = xlAutomatic in Col. 12. I currently have a loop that does this, but
it takes a long time.

I figure if I can sort all font color index = xlAutomatic to the top I can
quickly delete everything underneath very easily. Is there a way to sort by
font color? I know you can do it in 2007, but what about 2003?
--
Cheers,
Ryan

 
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
Sort by font color with Excel Mr. G. Excel Discussion (Misc queries) 6 January 30th 08 06:19 PM
How do I sort a column of different font colors by color? Jack Excel Worksheet Functions 1 July 20th 07 10:28 AM
Extracting font color within a range Barb Reinhardt Excel Programming 3 May 7th 07 11:43 PM
Sort or sub-total by Fill color or font color Excel_seek_help Excel Discussion (Misc queries) 1 April 27th 06 09:01 PM
Can you sort Excel data by font color? Help Me Sort Excel Discussion (Misc queries) 2 December 21st 04 10:35 PM


All times are GMT +1. The time now is 10:24 PM.

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"