Hello,
In my spreadsheet I have a variation of conditional formatting rules applied (that often overlap each other) to specific cells. Sometimes I have an icon set applied on top of another conditional formatting rule that simply turns the font color red if the value is greater than my specified value. How do I have a sub to detect whenvthere is an icon set, to delete that icon set rule and keep any other additional conditional formatting rules I may already have applied?
I currently have this which deletes all of the conditional formatting rule instead of just the icon set conditional formatting rule:
In my spreadsheet I have a variation of conditional formatting rules applied (that often overlap each other) to specific cells. Sometimes I have an icon set applied on top of another conditional formatting rule that simply turns the font color red if the value is greater than my specified value. How do I have a sub to detect whenvthere is an icon set, to delete that icon set rule and keep any other additional conditional formatting rules I may already have applied?
I currently have this which deletes all of the conditional formatting rule instead of just the icon set conditional formatting rule:
Code:
If Selection.FormatConditions.Count > 0 Then
Selection.FormatConditions.Delete