J
John Bailo
I wrote a loop to skip through some data (with the idea of selecting and
copying it). For some reason, when i=44 and the ActiveCell = HM2, a
1004 error is thrown on the .Offset(0,i).Select method.
Dim i
i = 0
Do While IsEmpty(ActiveCell.Offset(0, 1)) = False
ActiveCell.Offset(0, i).Select
i = i + 4
Loop
There is no difference in the data on worksheet in the columns before
and after the HM column. It is not at the edge of the worksheet.
This is the error:
"Run-time error '1004'
Application-defined or object-defined error"
What could cause this?
copying it). For some reason, when i=44 and the ActiveCell = HM2, a
1004 error is thrown on the .Offset(0,i).Select method.
Dim i
i = 0
Do While IsEmpty(ActiveCell.Offset(0, 1)) = False
ActiveCell.Offset(0, i).Select
i = i + 4
Loop
There is no difference in the data on worksheet in the columns before
and after the HM column. It is not at the edge of the worksheet.
This is the error:
"Run-time error '1004'
Application-defined or object-defined error"
What could cause this?