Application-defined or object-defined error

  • Thread starter Thread starter Bishop
  • Start date Start date
B

Bishop

I have the following code:

Worksheets("Fail Stats").Cells(FSStartRow, "A") = Cells(i - 5, "A").Value

I keep getting Application-defined or object-defined error. I also tried:

Worksheets("Fail Stats").Cells(FSStartRow, "A") =
Worksheets(center(i)).Cells(i - 5, "A").Value

But that didn't work either. What am I doing wrong?
 
Check out the value of i . If i-5 is less than 1 it will return error

If this post helps click Yes
 
Back
Top