x.Worksheets("Sheet1").Activate Range("A65536").Select ActiveCell.End(xlUp).Select lastrow = ActiveCell.Row Range("A2:A" & lastrow).Copy y.Worksheets("Sheet1").Range("a65536").End(xlUp).Offset(1, 0) Range("B2:B" & lastrow).Copy y.Worksheets("Sheet1").Range("b65536").End(xlUp).Offset(1, 0) I have read several places that using select is not recommended for copy pasting, and how can one do it without select?
Findis also superior toxlupetc which doesn't handle edge cases (empty columns, full columns, or hidden cells). See stackoverflow.com/questions/8283797/…