Hi and thank you ahead of time for helping me figure this out.
Situation:
-cell A1 has CF that imposes a gray fill color is the cell is BLANK
-Need to have VBA code that changes that color to Black based on certain conditions
Dilemma:
-When the VBA conditions are no longer, how do I get the CF to be reapplied for cell A1
Currently trying:
Code to Change Color of Cell:
-Range (A1).Interior.ColorIndex = 1
-Range (A1).FormatConditions.Delete
Code to Undo the VBA Color changing of Cell:
-Range (A1).Interior.ColorIndex = xlNone
-IS there a way to manually recycle the CF rules? i.e. reapply
I also noticed that after the VBA code "xlNone" is applied, NONE of the CF rules apply to cell A1 as a result of user entering new values into the cell (other CF rules apply different colors depending on values)
Thanks again,
Situation:
-cell A1 has CF that imposes a gray fill color is the cell is BLANK
-Need to have VBA code that changes that color to Black based on certain conditions
Dilemma:
-When the VBA conditions are no longer, how do I get the CF to be reapplied for cell A1
Currently trying:
Code to Change Color of Cell:
-Range (A1).Interior.ColorIndex = 1
-Range (A1).FormatConditions.Delete
Code to Undo the VBA Color changing of Cell:
-Range (A1).Interior.ColorIndex = xlNone
-IS there a way to manually recycle the CF rules? i.e. reapply
I also noticed that after the VBA code "xlNone" is applied, NONE of the CF rules apply to cell A1 as a result of user entering new values into the cell (other CF rules apply different colors depending on values)
Thanks again,
Last edited: