1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Sub MEF()
Dim endofcolumn As Long
endofcolumn = 500
For i = 1 To endofcolumn
Select Case Cells(i, 1).Value
Case Is = ""
Cells(i, 1).Interior.ColorIndex = 0
Case Is = "JV"
Cells(i, 1).Interior.ColorIndex = 35
Case Is = "R"
Cells(i, 1).Interior.ColorIndex = 3
Cells(i, 1).Font.ColorIndex = 2
Case Is = "B"
Cells(i, 1).Interior.ColorIndex = 37
Case Is = "N"
Cells(i, 1).Interior.ColorIndex = 1
Cells(i, 1).Font.ColorIndex = 2
Case Is = "O"
Cells(i, 1).Interior.ColorIndex = 46
Case Is = "V"
Cells(i, 1).Interior.ColorIndex = 7
End Select
Next i
End Sub |