In column A I have target production, in column B I have actual production, and in column C I have the delta between the two. I simply want to loop through each row in column C and flag each value according to a strategic bucket. The sample code I tried before going into master document is below.
My issue is surrounding how to perform the action on the current cell in the loop. The code is just coloring the last cell I clicked on instead of the cell being evaluated. Any suggestions?
Sub StratBuckets()
Dim Delta As Variant
Dim n As Integer
n = 0
For n = 0 To 15
' works up to this point --> points to the right value
Delta = Worksheets("Test").Range("A1:Z1000").Find("Start Date").Offset(n, 3).Value
If Delta > 0 And Delta <= 10 Then
ActiveCell.Interior.Color = vbYellow
ElseIf Delta > 10 Then
ActiveCell.Interior.Color = vbGreen
ElseIf Delta < 0 Then
ActiveCell.Interior.Color = vbRed
Else
End If
Next n
End Sub