Consulting

Results 1 to 4 of 4

Thread: count conditional format

  1. #1
    VBAX Mentor
    Joined
    Jun 2005
    Posts
    374
    Location

    count conditional format

    hello
    is there a way to count cells according to there interior color if they are formated in conditional format?
    thanks
    moshe

  2. #2
    Administrator
    Chat VP
    VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    The usual answer is no... However, there is a way, but it's by no means simple or easy - see here > http://www.xldynamic.com/source/xld.CFConditions.html
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  3. #3
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    I don't think you can do that because CF does not use the same color index as regular cells. For instance, light green has a color index of 35 but I do not think CF uses that index.
    Peace of mind is found in some of the strangest places.

  4. #4
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    CF does use the same index as regular cells, but it won't show that when looking at the worksheet object, only if you look/loop through all CF's.

Posting Permissions

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