You might find it easier to use ColorIndex instead of RGB. So here is the modification to the macro:
Public Sub Change_Color()
Dim C_ell As Range, Color_Index(10)
Color_Index(0) = 3
Color_Index(1) = 4
Color_Index(2) = 5
Color_Index(3) = 7
Color_Index(4) = 8
Color_Index(5) = 9
Color_Index(6) = 10
Color_Index(7) = 12
Color_Index(8) = 11
Color_Index(9) = 13
Range("A3").EntireRow.Font.ColorIndex = 3
i = 0
For Each C_ell In Range("A4", Cells(Rows.Count, 1).End(xlUp))
If C_ell = C_ell.Offset(-1, 0) Then
C_ell.EntireRow.Font.ColorIndex = Color_Index(i)
Else
If i = 10 Then i = 0 Else i = i + 1
C_ell.EntireRow.Font.ColorIndex = Color_Index(i)
End If
Next
End Sub
Bookmarks