ransomedbyfire
Board Regular
- Joined
- Mar 9, 2011
- Messages
- 121
I have a macro that contains the following within a longer loop:
For some reason, the second time Excel hits the line in bold, the macro stops and starts over from the beginning; thus, it never loops past the second line or so. The only error handler I have sends the code to a msgbox line; so, I don't think it's that.
What could be causing this, and how can I fix it?
Thanks!
Rich (BB code):
If InStr(Cells(Row, Column), "-") Then
With Cells(Row, Column).Font
.ColorIndex = 3
End With
Else: With Cells(Row, Column).Font
.ColorIndex = 0
End With
End If
What could be causing this, and how can I fix it?
Thanks!
Last edited: