Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to write a contionalformat in code. I have this code ight now:
Range("E1:E10").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, _ Formula1:="0" With Selection.FormatConditions(1).Font .Bold = True .Italic = False .ColorIndex = 3 End With This is not doing what I need. I want a code that would change the font color in a range of cells based on if the value of another cell is equal to zero. How do I go about doing this. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting - Code to colour 3+ text values differently | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional formatting w/ more than 3 conditionas, color code to a different cell | About this forum | |||
Override conditional formatting with code | Excel Discussion (Misc queries) | |||
Macro code to delete conditional formatting | Excel Discussion (Misc queries) |