Well, the good thing about Conditional Formatting is that you don't have to reference the cell you are in to make use of CF. You can reference any cell from anywhere and still be a valid condition.
These are the steps I took to use standard Conditional Formatting (recommended):
- Select column A (ensuring A1 is active)
- Select Format (menu) --> Conditional Formatting
- Select Formula Is..
- Enter this formula ...
- =(ROW()<>1)*(C1=4)
- Select your Yellow highlight Pattern.
- Press Ok.
As far as any VBA goes, I didn't see any routine in your workbook. But you could use a (worksheet) change event like this if desired ...
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub 'multiple cells
If Target.Row < 2 Then Exit Sub 'headers
If Target.Column = 3 Then 'correct column
If Target.Value = 4 Then
Cells(Target.Row, 1).Interior.ColorIndex = 6
' ElseIf Target.Value = 24 Then
' Cells(Target.Row, 1).Interior.ColorIndex = 3
Else
Cells(Target.Row, 1).Interior.ColorIndex = 0
End If
End If
End Sub
Note that there are 2 lines in the code above that I have commented out. This can be uncommented if you wish to add more than one condition on it, say if you wanted a different action for a 24 value. You can do this with Conditional Formatting (still recommended) but only up to 3 - possibly up to 3 more using Custom Formatting, so up to 7 formats before needing VBA.
HTH