Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
scott
 
Posts: n/a
Default can i use the color of a cell to count the different colerd cells


  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default can i use the color of a cell to count the different colerd cells

Do you want to count the number of different colors? If so,


Dim Coll As New Collection
Dim Rng As Range
On Error Resume Next
For Each Rng In Range("A1:A10")
Coll.Add Rng.Interior.Color, CStr(Rng.Interior.Color)
Next Rng
Debug.Print "Different Colors: " & Coll.Count


Otherwise, post back with more details.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"scott" wrote in message
...



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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
UDF is updateing cells on another sheet with count from current sheet. John Excel Discussion (Misc queries) 3 March 20th 06 03:58 PM
Count Cells if diff cell meets conditions DJS Excel Worksheet Functions 5 January 12th 06 03:47 PM
count cell if value present in every other cell + criteria lrbest4x4xfar Excel Worksheet Functions 2 September 26th 05 01:30 AM
How to count how many cells a linked cell group occupies Kanaski79 Excel Worksheet Functions 7 September 23rd 05 08:49 PM


All times are GMT +1. The time now is 04:23 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"