Hi all,
I am running XL 2003 and it gives me only 3 conditions on conditional formating. But I need 7.
I have a code but I can't adapt it to my new project as layout is totally different. Could someone have a look where changes need to be made in a code?
Cells to be affected are K12:AE12
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Column = 4 Then
ActiveCell.Font.ColorIndex = 1
If ActiveCell.Value = "Black" Then ActiveCell.Font.ColorIndex = 2
If ActiveCell.Value = "Orange" Then ActiveCell.Interior.ColorIndex = 44
If ActiveCell.Value = "Yellow" Then ActiveCell.Interior.ColorIndex = 6
If ActiveCell.Value = "Pink" Then ActiveCell.Interior.ColorIndex = 38
If ActiveCell.Value = "Blue" Then ActiveCell.Interior.ColorIndex = 41
If ActiveCell.Value = "Green" Then ActiveCell.Interior.ColorIndex = 4
If ActiveCell.Value = "Red" Then ActiveCell.Interior.ColorIndex = 3
If ActiveCell.Value = "Black" Then ActiveCell.Interior.ColorIndex = 1
End If
End Sub
Thanks a lot!
Bookmarks