Hi members,
Question I hope somebody can help me resolve. I am getting the following error "Method 'Range' of object '_Global' failed when I run the following code.
I went over this multiple times and even retyped and still have issues.
I am hoping somebody can give me a hand with this syntax.
The goal of this code is to check column "I" for a value of 1000 or more and then highlight that entire row as it loops though the rows.
Thank you for the help.
Question I hope somebody can help me resolve. I am getting the following error "Method 'Range' of object '_Global' failed when I run the following code.
I went over this multiple times and even retyped and still have issues.
VBA Code:
Sub color_Row()
Dim Count, i As Long
Count = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
'MsgBox Count
i = 2
Do While i <= Count
If Cells(i, 9).Value >= 1000 Then
Range(Cells(i, 1).Cells(i, 20)).Interior.Color = RGB(67, 195, 233)
End If
i = i + 1
Loop
End Sub
I am hoping somebody can give me a hand with this syntax.
The goal of this code is to check column "I" for a value of 1000 or more and then highlight that entire row as it loops though the rows.
Thank you for the help.