Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy between workbooks Carmela Excel Worksheet Functions 3 January 8th 10 08:24 PM
Copy/ move selected data from workbooks to seperate worksheets or workbooks Positive Excel Worksheet Functions 1 August 30th 07 04:54 PM
Can't copy between workbooks Sibil71 Excel Discussion (Misc queries) 10 November 2nd 06 07:02 PM
Copy a range from closed workbooks (ADO) nc Excel Discussion (Misc queries) 3 October 17th 05 06:02 PM
copy range to multiple workbooks davez Excel Discussion (Misc queries) 4 August 27th 05 01:14 AM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"