Hi, currently I have some data in sheet name "From Text" that I want to copy to the table in sheet "Source"
but the problem is I want to copy all the selected data to the last row of the table instead of overwriting the existing data.
i tried to google around but none of the code fit my situation.
Hope someone can help me with this!
This is the code I use to copy the data.
but the problem is I want to copy all the selected data to the last row of the table instead of overwriting the existing data.
i tried to google around but none of the code fit my situation.
Hope someone can help me with this!
This is the code I use to copy the data.
VBA Code:
sub copy()
Sheets("From text').Range("A9").Select 'because I want to copy the data from row 9 to the last visible row and column
Range(selection,selection.end(xldown)).select
range(selection,selection.end(xltoright)).select
selection.copy
Sheets("Source").ListObject(1).ListRows.add 'i try to use this line to add a row to my table in this sheet but I dunno how to paste the copied data to it
End sub