+ Reply to Thread
Results 1 to 7 of 7

Detect cell conditional formatting state of specific condition

  1. #1
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Detect cell conditional formatting state of specific condition

    Is it possible to check the conditional state for a specific condition for a specific cell.
    For example a cell has 1 or more conditions.
    A condition will toggle to a condition if true or false etc.
    The specifics is i use red (color 255) if a cell has not met a specific condition (of 1 or more conditions)
    So if the cell is mandatory to be populated, and is blank, it will be red, if not it will be something else.

    But i want to loop all visible cells with conditional formatting, and where the cell has a condition when true will show interior color = to 255 return the cell address.
    To msg the user where data entry is still required etc.
    Thanks
    Last edited by wotadude; 11-30-2009 at 05:58 PM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Detect cell conditional formatting state of specific condition

    Hi

    You could try something like the following.

    Please Login or Register  to view this content.
    Regards

    Jeff

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Detect cell conditional formatting state of specific condition

    Quote Originally Posted by solnajeff View Post
    Hi

    You could try something like the following.

    Please Login or Register  to view this content.
    Regards

    Jeff
    I don't think you can get the interior.colorIndex from a conditional formatted cell, did you try it?
    Last edited by davesexcel; 11-27-2009 at 09:53 AM.

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Detect cell conditional formatting state of specific condition

    Hi

    You are absolutely right, it had been a long day (no excuse really).

    The following code however should evaluate correctly.

    Please Login or Register  to view this content.
    Thanks for the heads up

    Regards


    Jeff

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Detect cell conditional formatting state of specific condition

    That wouldn't flag all invalid data, merely blank cells that have CF rules applied (the requirement to be populated might not even be one of the conditions). Chip Pearson has code here to detect active conditional formatting.
    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Detect cell conditional formatting state of specific condition

    HI

    Perhaps I was reading the question incorrectly as I took it to mean if the cell had conditional formatting and was blank it should be flagged.

    Regards

    Jeff

  7. #7
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Detect cell conditional formatting state of specific condition

    Thanks people. I have seen Chips function, that is what i need, i was hoping there may be a simpler solution.

+ 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