Hi jaydee,
You could use a VLOOKUP either on a separate sheet or directly in the code as I have done with this proposed solution:
Option Explicit
Sub Macro1()
Dim lngMyRow As Long
Dim intMyColourIndex As Integer
For lngMyRow = 1 To Cells(Rows.Count, "A").End(xlUp).Row
On Error Resume Next
intMyColourIndex = Evaluate("VLOOKUP(" & Val(Cells(lngMyRow, 1)) & ",{2,35;5,35},2,0)")
If intMyColourIndex > 0 Then
Rows(lngMyRow).EntireRow.Interior.ColorIndex = intMyColourIndex
intMyColourIndex = 0
End If
On Error GoTo 0
Next lngMyRow
End Sub
Regards,
Robert