My worksheet is very large so I created a smaller dummy version to attach that works basically the same way.
I have a range with 12 rows-- with row 1 being a header row. There are 9 columns, one for a persons name and then Criteria-1 through Criteria 8.
I run conditional formatting -- 3 separate rules-- one for Criteria 1 = "ABC", flag it as bold red. One for Criteria 3, 4, and 5 taken as a block-- if any cell in that range = "FFF", flag it as bold red. Then I run a rule on Criteria 7-- if "TTT", flag it as bold red. This flags all my incorrect cells for later fixing.
What I want a macro to do is to cycle through all the rows and if it sees that all the cells in that row are not in Bold RED, (in other words, not conditionally formatted), then it hides that row. This way I'm left with only things I need to fix.
I can run a manual sort to do this (I've done it on the attached sheet) and it seems to work-- it moves all the rows that have red in them to the top. From here, I'd need to hide the bottom rows and I'm good to go.
But I've tried to put this in a macro, to no avail. Is it because you can't test for conditional formatting in a cell using VBA because CF is not the same property as cell's text color?
Any insights?
I have a range with 12 rows-- with row 1 being a header row. There are 9 columns, one for a persons name and then Criteria-1 through Criteria 8.
I run conditional formatting -- 3 separate rules-- one for Criteria 1 = "ABC", flag it as bold red. One for Criteria 3, 4, and 5 taken as a block-- if any cell in that range = "FFF", flag it as bold red. Then I run a rule on Criteria 7-- if "TTT", flag it as bold red. This flags all my incorrect cells for later fixing.
What I want a macro to do is to cycle through all the rows and if it sees that all the cells in that row are not in Bold RED, (in other words, not conditionally formatted), then it hides that row. This way I'm left with only things I need to fix.
I can run a manual sort to do this (I've done it on the attached sheet) and it seems to work-- it moves all the rows that have red in them to the top. From here, I'd need to hide the bottom rows and I'm good to go.
But I've tried to put this in a macro, to no avail. Is it because you can't test for conditional formatting in a cell using VBA because CF is not the same property as cell's text color?
Any insights?