How can I modify this code to use RGB(x,y,z) code instead? Thanks
Private Sub Worksheet_Calculate()
Dim icolor As Integer, c As Range
For Each c In Range("G21:G45,I21:I45,K21:K45")
Select Case c.Offset(, 1)
Case 1: icolor = 4
Case 2: icolor = 35
Case 3: icolor = 44
Case 4: icolor = 6
Case 5: icolor = 2
End Select
c.Interior.ColorIndex = icolor
Next c
End Sub
Private Sub Worksheet_Calculate()
Dim icolor As Integer, c As Range
For Each c In Range("G21:G45,I21:I45,K21:K45")
Select Case c.Offset(, 1)
Case 1: icolor = 4
Case 2: icolor = 35
Case 3: icolor = 44
Case 4: icolor = 6
Case 5: icolor = 2
End Select
c.Interior.ColorIndex = icolor
Next c
End Sub