Hi, I want my VBA to run like this
1. copy data from sheet "fromtext" to the table in sheet "report" (everytime the data will copy to the last row of the table)
2. After copy the data, the table has two extra column "year" and "date" which require user manually input year and month of the copied data
my problem is at step 2, which I don't know what is the best and also the simplest way to automate manual year and month input
this is my code , please advice
1. copy data from sheet "fromtext" to the table in sheet "report" (everytime the data will copy to the last row of the table)
2. After copy the data, the table has two extra column "year" and "date" which require user manually input year and month of the copied data
my problem is at step 2, which I don't know what is the best and also the simplest way to automate manual year and month input
this is my code , please advice
VBA Code:
With Sheets ("fromtext")
. range("A9",.range("A9").end(xlDown).End(xltoright).copy
end with
With sheets("report").listobjects(1).range
.cells(.rows.count+1,1).pastespecial xlvalues
end with
application.cutcopymode=false