May I offer a suggestion? Consider doing this task without a loop, to save time and system resources.
This code copies the entire row, where cells in column A are blank, over to another sheet.
Please note:
(1) Your code called for A:Z to be copied. If you don't care whether just A:Z or the entire row gets copied, or if your data range should expand in columns anytime down the road (happens a lot in business), this code will automatically accommodate that.
(2) The destination sheet reference in this example is Sheet2, which may or may not be "Sheet2" as you see it on your sheet tab. It is the VBA object reference to the sheet...works better in referencing code my opinion, once you get used to it. You can see these objects in the VBE's VBA Project Explorer.
(3) Maybe this should have been (1), but I hope I interpreted your post correctly, in that you are searching for blank cells in column A within your range, and wanting to copy over those rows. If I misunderstood, sorry.
(4) Modify the destination sheet name and set range as desired.
Sub CopyBlankRows()
Dim Rng As Range
Set Rng = Range([A2], [A6666].End(xlUp))
Rng.SpecialCells(xlBlanks).EntireRow.Copy _
Sheet2.[A65536].End(xlUp).Offset(1, 0)
End Sub
Again, just a suggestion for another approach.
Tom Urtis
This code copies the entire row, where cells in column A are blank, over to another sheet. Please note: (1) Your code called for A:Z to be copied. If you don't care whether just A:Z or the entire row gets copied, or if your data range should expand in columns anytime down the road (happens a lot in business), this code will automatically accommodate that. (2) The destination sheet reference in this example is Sheet2, which may or may not be "Sheet2" as you see it on your sheet tab. It is the VBA object reference to the sheet...works better in referencing code my opinion, once you get used to it. You can see these objects in the VBE's VBA Project Explorer. (3) Maybe this should have been (1), but I hope I interpreted your post correctly, in that you are searching for blank cells in column A within your range, and wanting to copy over those rows. If I misunderstood, sorry. (4) Modify the destination sheet name and set range as desired.
Thanks for thinking along Tom.