Riz, as you have found out, only 3 conditions with conditional formatting.
But yes you can use some code to get more than 3, try this it will change
the cell color in column A when you put in one ,two, three, or four, right
click on the sheet tab and view code, paste it in the window that opens.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub
With Target
Select Case LCase(.Value)
Case Is = "one": .Interior.ColorIndex = 5
Case Is = "two": .Interior.ColorIndex = 6
Case Is = "three": .Interior.ColorIndex = 7
Case Is = "four": .Interior.ColorIndex = 8
Case Else
.Interior.ColorIndex = xlNone
End Select
End With
End Sub
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003