I am using Excel 2010. I would like to use recorded macros to apply conditional formatting to certain columns.
For example, say I record a macro to conditionally format columns A through C where any value less than 0 is red, and greater than or equal to 0 is green. Then I record a second macro to conditionally format columns D through F where any value less than 20 is red, and greater than or equal to 20 is green.
The problem I face is that whenever I run the second macro, it wipes out the conditional formatting that the first macro applied to columns A through C.
I also tried recording this all as one macro, and it still didn't work.
Any conditional formatting commands run in macros seem to override previous conditional formatting, even though the columns selected are completely different. How can I prevent this from happening?
For example, say I record a macro to conditionally format columns A through C where any value less than 0 is red, and greater than or equal to 0 is green. Then I record a second macro to conditionally format columns D through F where any value less than 20 is red, and greater than or equal to 20 is green.
The problem I face is that whenever I run the second macro, it wipes out the conditional formatting that the first macro applied to columns A through C.
I also tried recording this all as one macro, and it still didn't work.
Any conditional formatting commands run in macros seem to override previous conditional formatting, even though the columns selected are completely different. How can I prevent this from happening?