hello I am trying to copy columns one sheet to another however it takes so much time to copy.
i have tried this code below. I have lots of data it takes several time with this code. any tips to make this code more efficient?
i have tried this code below. I have lots of data it takes several time with this code. any tips to make this code more efficient?
Code:
Dim lastrow, erow As Long
lastrow = Worksheets("sheet 2").Cells(Rows.Count,
1).End(xlUp).Row
For i = 2 To lastrow
Worksheets("sheet 1").Cells(i, 1).Copy
erow = Worksheets("sheet2").Cells(Rows.Count, 1).End(xlUp).Row
Worksheets("sheet 1").Paste Destination:=Worksheets("sheet2").Cells(erow +
1, 1)
Worksheets("sheet 1").Cells(i, 3).Copy
Worksheets("sheet 1").Paste Destination:=Worksheets("sheet2").Cells(erow +
1, 3)
Next i
Application.CutCopyMode = False
Worksheets("Sheet1").Cells(1, 1).Select
Last edited by a moderator: