+ Reply to Thread
Results 1 to 2 of 2

can i use the color of a cell to count the different colerd cells

  1. #1
    scott
    Guest

    can i use the color of a cell to count the different colerd cells



  2. #2
    Chip Pearson
    Guest

    Re: 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" <scott@discussions.microsoft.com> wrote in message
    news:EBF8548C-A24B-44E2-B935-5DC9903572AE@microsoft.com...
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1