I have a pretty simple question. I wrote this code to look for a preexisting date so that I can replace it. This code has worked perfectly, but I created a copy of the file to run the same code with a separate data set and now the code gets hung up on the fourth line giving me an overflow error. Any idea as to what the root of the problem is?
Dim i As Integer, ValueToFind As Integer, LRow As Integer
intValueToFind = Sheet8.Range("K6")
Sheet3.Activate
LRow = Range("I" & Rows.Count).End(xlUp).Row
For i = 1 To LRow
If Cells(i, 9).Value = intValueToFind Then
MsgBox ("Found value on row " & i)