Tronsliver
Technical User
I'm struggling with this, hopefully someone can tell me how to make this work. I'm trying to color the interior of a cell based on the value of that cell. Here is the procedure:
Public Sub InteriorCells()
Dim x As Long
For x = 3 To 21
If Cells(x, "D".Value >= 90 Then
Selection.Interior.ColorIndex = 4
Else
If Cells(x, "D".Value > 80 Then
Selection.Interior.ColorIndex = 6
End If
End If
Next x
End Sub
Public Sub InteriorCells()
Dim x As Long
For x = 3 To 21
If Cells(x, "D".Value >= 90 Then
Selection.Interior.ColorIndex = 4
Else
If Cells(x, "D".Value > 80 Then
Selection.Interior.ColorIndex = 6
End If
End If
Next x
End Sub