Hi All!
I used VBA to create conditional formatting rules for a range of cells, but when I ran the macro there was no change to cells that should have been formatted. I checked to see if the code generated the rule and it did so it should have worked. What's really strange is that after checking to see if the rule was generated the conditional formatting suddenly started to work. I've tried it three times and the conditional formatting only works after manually checking to see if a rule is there (clicking "Conditional Formatting" then "Manage Rules...". I have restarted Excel thinking it was some kind of error but the situation is the same. Any ideas?
Thank you!!
Here is the rule if anyone is curious:
=AND($R29="Phase 2",$Q29>AVERAGEIF($R29:$R1529,"Phase 2",$Q29:$Q1529)+STDEV.P(IF($R29:$R1529="Phase 2",$Q29:$Q1529)))
I used VBA to create conditional formatting rules for a range of cells, but when I ran the macro there was no change to cells that should have been formatted. I checked to see if the code generated the rule and it did so it should have worked. What's really strange is that after checking to see if the rule was generated the conditional formatting suddenly started to work. I've tried it three times and the conditional formatting only works after manually checking to see if a rule is there (clicking "Conditional Formatting" then "Manage Rules...". I have restarted Excel thinking it was some kind of error but the situation is the same. Any ideas?
Thank you!!
Here is the rule if anyone is curious:
=AND($R29="Phase 2",$Q29>AVERAGEIF($R29:$R1529,"Phase 2",$Q29:$Q1529)+STDEV.P(IF($R29:$R1529="Phase 2",$Q29:$Q1529)))