Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy range between workbooks
Dave, You have to open it to copy to it.
dim oWb As Workbook Set oWb = Workbooks.Open("C:\Documents and Settings\Dave Newman\My Documents\Admin\Test mule.xls") Range("A1").CurrentRegion.Copy. _ oWb.Sheets(1).Range ("A6") (not tested) -- HTH Bob Phillips "Dave Newman" wrote in message .. . Seems simple, but I can't seem to make it work. I'm trying to copy CurrentRegion from one active sheet to a closed workbook. Should I do it this way, or should I open the workbook, , then copy the range (and how do I do _that_)? f = "C:\Documents and Settings\Dave Newman\My Documents\Admin\Test mule.xls" Range("A1").CurrentRegion.Copy. _ Workbook(f).Sheets(1).Range ("A6") Someone please help a newbie! Dave |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy range between workbooks
Seems simple, but I can't seem to make it work. I'm trying to copy
CurrentRegion from one active sheet to a closed workbook. Should I do it this way, or should I open the workbook, , then copy the range (and how do I do _that_)? f = "C:\Documents and Settings\Dave Newman\My Documents\Admin\Test mule.xls" Range("A1").CurrentRegion.Copy. _ Workbook(f).Sheets(1).Range ("A6") Someone please help a newbie! Dave |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy range between workbooks
VERY difficult to copy TO a closed wb. Try recording a macro of:
opening wb do your thing close workbook save changes=false -- Don Guillett SalesAid Software Granite Shoals, TX "Dave Newman" wrote in message .. . Seems simple, but I can't seem to make it work. I'm trying to copy CurrentRegion from one active sheet to a closed workbook. Should I do it this way, or should I open the workbook, , then copy the range (and how do I do _that_)? f = "C:\Documents and Settings\Dave Newman\My Documents\Admin\Test mule.xls" Range("A1").CurrentRegion.Copy. _ Workbook(f).Sheets(1).Range ("A6") Someone please help a newbie! Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy between workbooks | Excel Worksheet Functions | |||
Copy/ move selected data from workbooks to seperate worksheets or workbooks | Excel Worksheet Functions | |||
Can't copy between workbooks | Excel Discussion (Misc queries) | |||
Copy a range from closed workbooks (ADO) | Excel Discussion (Misc queries) | |||
copy range to multiple workbooks | Excel Discussion (Misc queries) |