Hi All,
I have a table on sheet1 A1:B10, I'm wondering how can i use a macro to copy it to last row on sheet2?
I have this but it returns code 1004 error, application defined or object defined error
Sub test()
Sheets("Sheet1").Select
Range("A1:B10").Select
Selection.Copy
Sheets("Sheet2").Select
Cells(Rows.Count, 1).End(xlUp).Offset(6, 1).Select
ActiveSheet.Paste
End Sub
thanks for your guidance
I have a table on sheet1 A1:B10, I'm wondering how can i use a macro to copy it to last row on sheet2?
I have this but it returns code 1004 error, application defined or object defined error
Sub test()
Sheets("Sheet1").Select
Range("A1:B10").Select
Selection.Copy
Sheets("Sheet2").Select
Cells(Rows.Count, 1).End(xlUp).Offset(6, 1).Select
ActiveSheet.Paste
End Sub
thanks for your guidance