Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Arul
This example copies a range without the header row on sheet1 to the first free row on sheet2 Sub test() Dim tbl As Range Set tbl = Sheet1.Range("A1").CurrentRegion tbl.Offset(1, 0).Resize(tbl.Rows.Count - 1, _ tbl.Columns.Count).Copy Sheet2.Range("A65000").End(xlUp).Offset(1, 0) End Sub As you want to copy between workbooks, you have to refer to it as well Regards, Jean-Yves "Arul" wrote in message ... I have two excel files text.xls and EV.xls, both of which are open. I am trying to copy data from text.xls without the header row (currently the active file) and paste it after the last row in EV.xls...using a macro. Both files have identical number of columns. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF THEN copy & paste macro | Excel Worksheet Functions | |||
HELP with macro for copy and paste | Excel Discussion (Misc queries) | |||
Macro to Copy/Paste then Paste to Next Line | Excel Programming | |||
Copy and Paste Macro Help please.... | Excel Programming | |||
MACRO TO COPY AND PASTE! | Excel Programming |