Pete,
The example code below will apply colors to column A. Copy the code, right-click the sheet tab,
select "View Code" and paste the code into the window that appears.
HTH,
Bernie
MS Excel MVP
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myCell As Range
Dim myR As Range
Set myR = Intersect(Target, Range("A:A"))
If myR Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each myCell In myR
If myCell.Value = "A" Then myCell.Interior.ColorIndex = 3
If myCell.Value = "B" Then myCell.Interior.ColorIndex = 41
If myCell.Value = "C" Then myCell.Interior.ColorIndex = 50
If myCell.Value = "D" Then myCell.Interior.ColorIndex = 6
If myCell.Value = "E" Then myCell.Interior.ColorIndex = 46
If myCell.Value = "" Then myCell.Interior.ColorIndex = xlNone
Next myCell
Application.EnableEvents = True
End Sub
> Bernie,
>
[quoted text clipped - 33 lines]
>>> TIA
>>> Pete
PO - 30 Oct 2007 15:44 GMT
Thanks Bernie, works perfect!
/Pete
> Pete,
>
[quoted text clipped - 66 lines]
>>>> TIA
>>>> Pete