Hello,
I've created a workbook with 4 worksheets that have been copied from other workbooks. In this workbook I'm trying to copy and paste all data from a column in sheet1 to sheet2.
I'm using the following vba code:
In my case, sheet1 has 63863 rows, but the above code only pastes 32582 rows into sheet2.
Any suggestions or help would be greatly appreciated.
Thanks
I've created a workbook with 4 worksheets that have been copied from other workbooks. In this workbook I'm trying to copy and paste all data from a column in sheet1 to sheet2.
I'm using the following vba code:
VBA Code:
Dim lastRow As Long
lastRow = Cells(Rows.Count, 1).End(xlUp).Row
Sheets("sheet1").Activate
Range("A2:A" & lastRow).Copy
Sheets("sheet2").Activate
Range("A2").PasteSpecial Paste:=xlPasteValues
In my case, sheet1 has 63863 rows, but the above code only pastes 32582 rows into sheet2.
Any suggestions or help would be greatly appreciated.
Thanks