Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am using a macro to transfer data from and input sheet to a database use
cutting and pasteing. I am not sure how to add new data without erase the data sent during the previous macro execution. Any help will be valued. |
#2
![]() |
|||
|
|||
![]()
Is there a column that always has data in it in your database?
I'm gonna use column A for my example: Dim RngToCopy as range dim DestCell as range with worksheets("sheet1") set rngtocopy = .range("a5:G99") 'some range end with with worksheets("sheet2") set destcell = .cells(.rows.count,"A").end(xlup).offset(1,0) end with rngtocopy.copy _ destination:=destcell ==== It starts at A65536, comes up until it finds something, then drops down one row. Scribner wrote: I am using a macro to transfer data from and input sheet to a database use cutting and pasteing. I am not sure how to add new data without erase the data sent during the previous macro execution. Any help will be valued. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with data not getting plotted | Excel Discussion (Misc queries) | |||
Help with data not getting plotted | Charts and Charting in Excel | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions | |||
Charting data ranges that change | Charts and Charting in Excel | |||
record macros in excel and get data from webpages | Excel Worksheet Functions |