Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Copying Rows That Change Dynamically
I'm writing a macro for Excel that will copy large ranges of data and paste
into a new worksheet preserving the historical data. The number of rows to copy changes dynamically on almost a daily basis. Is there a function that can be written into a macro to change the range selectiion each time new data is available. Each row is a transaction record. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Copying Rows That Change Dynamically
See Ron de Bruin's site
http://www.rondebruin.nl/tips.htm Browse through the section on Copy/Paste/Merge examples Gord Dibben MS Excel MVP On Fri, 28 Sep 2007 10:07:01 -0700, Bill Lowry <Bill wrote: I'm writing a macro for Excel that will copy large ranges of data and paste into a new worksheet preserving the historical data. The number of rows to copy changes dynamically on almost a daily basis. Is there a function that can be written into a macro to change the range selectiion each time new data is available. Each row is a transaction record. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Copying Rows That Change Dynamically
Dim r as Range, r1 as Range with worksheets("Destination") set r = .cells(rows.count,1).End(xlup).row End with with worksheets("Data") set r1 = .Range("A1").CurrentRegion r1.offset(1,0).copy r(2) End With -- Regards, Tom Ogilvy "Bill Lowry" wrote: I'm writing a macro for Excel that will copy large ranges of data and paste into a new worksheet preserving the historical data. The number of rows to copy changes dynamically on almost a daily basis. Is there a function that can be written into a macro to change the range selectiion each time new data is available. Each row is a transaction record. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Dynamically copying data | Excel Programming | |||
Adding rows dynamically via macro | Excel Programming | |||
Adding rows dynamically via macro | Excel Programming | |||
Adding rows dynamically via macro | Excel Programming | |||
Copying font and pattern dynamically | Excel Discussion (Misc queries) |