hello
i have this code works copy specific columns from sheet to another but is very slow i would do that by array without loops
Code
Sub copycol()
Dim lastrow, erow As Long
lastrow = sheet1.Cells(Rows.Count, 1).End(xlUp).Row
For i = 1 To lastrow
sheet1.Cells(i, 2).Copy
erow = sheet2.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
sheet1.Paste Destination:=Worksheets("sheet2").Cells(erow, 1)
sheet1.Cells(i, 4).Copy
sheet1.Paste Destination:=Worksheets("sheet2").Cells(erow, 2)
Next
End Sub
Display More