Hi. Running into a Type Mismatch error when running the loop below.
I receive a rather large spreadsheet (up 9000 rows on certain months) monthly and I need to highlight certain amounts. Problem lies in that some of the cells have text in lieu of numbers. I just want the Sub to ignore the cells with text.
Thanks in advance for any input that you may have.
Sub Highlite()
Dim i As Long
For i = Cells(Rows.Count, "B".End(xlUp).Row To 1 Step -1
If Cells(i, "C".Value > 1000 Then Cells(i, "C".Interior.ColorIndex = 6
End Sub
Next i
I receive a rather large spreadsheet (up 9000 rows on certain months) monthly and I need to highlight certain amounts. Problem lies in that some of the cells have text in lieu of numbers. I just want the Sub to ignore the cells with text.
Thanks in advance for any input that you may have.
Sub Highlite()
Dim i As Long
For i = Cells(Rows.Count, "B".End(xlUp).Row To 1 Step -1
If Cells(i, "C".Value > 1000 Then Cells(i, "C".Interior.ColorIndex = 6
End Sub
Next i