Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to set in red the cell in the Colamn 9 if the value is 'No'.
There is some conditional formatting as well - if there is some value it's green, if it's empty it's without any collar. I'm using the following code to make it red if it's "No": If Target.Column = 9 Then With Target(1, 1) If Target.Value < "" Then If Target.Value = "No" Then .Interior.ColorIndex = 3 .Interior.Pattern = xlSolid End If Else .ClearContents End If End With End If But, it's getting red when I enter 'No' and after that clean the cell. But, I need it red when the cell value is "No". Could anybody advise anything. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formatting % and KPI target in excel 2003 | Excel Discussion (Misc queries) | |||
Target cell reference moves when target is cut and pasted | Excel Discussion (Misc queries) | |||
Maintain cell formatting in target cell when using Paste | Excel Discussion (Misc queries) | |||
Ranges:Target in Worksheet_SelectionChange(ByVal Target As Range) | Excel Programming | |||
How find if target is object in Worksheet_Change (ByVal Target As.. ?) | Excel Programming |