PC Review


Reply
Thread Tools Rate Thread

copy to closed workbook on a different drive

 
 
Max Bialystock
Guest
Posts: n/a
 
      14th Mar 2007
How can I copy the contents of A1 in C:\users\book1.xls to C9 in
D:\users\book2.xls and to C9 in D:\users\book3.xls.



Let's assume that both workbooks on drive D are closed.





 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      14th Mar 2007
Record a macro when you open book2, do the copy|paste and close book2 (and
save).

Continue recording when you open book3 and copy|paste and close book3 (and
save).

And you'll see the code.

Max Bialystock wrote:
>
> How can I copy the contents of A1 in C:\users\book1.xls to C9 in
> D:\users\book2.xls and to C9 in D:\users\book3.xls.
>
> Let's assume that both workbooks on drive D are closed.


--

Dave Peterson
 
Reply With Quote
 
Greg Glynn
Guest
Posts: n/a
 
      14th Mar 2007
Max,

Loved your last Production ("Guys and Dills") by the way.

You can do it a copy of ways. If you don't want to open the
workbooks, you can hard code the entries like this:

The formula for D:Book2 C9 is {=C:\users\[book1.xls]Sheet1'!A1}
The formula for D:Book3 C9 is {=D:\users\[book2.xls]Sheet1'!C9}

Note: The parentheses are part of the formula - {Freaky, I know.}

Good luck.

 
Reply With Quote
 
Greg Glynn
Guest
Posts: n/a
 
      14th Mar 2007
Hmmm ...

I may have misled you here. This technique above works when you
initially have both workbooks open, and you refer the the remote
workbook with an '=' first.

Once you have the reference in the cell, you can all workbooks and
reopen and your results workbooks will try to perform an update.

The result is what you need though (and I was wrong about the
parentehses). sorry for the confusion.

Greg

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy from closed workbook Gaurav Microsoft Excel Discussion 2 2nd Jan 2009 08:47 PM
Copy data from Closed Workbook ryguy7272 Microsoft Excel Programming 3 29th Sep 2008 08:02 PM
copy from closed workbook again! ;( =?Utf-8?B?Q2hyaXN0eQ==?= Microsoft Excel Programming 6 4th Mar 2005 10:33 PM
Copy data from a closed workbook (ADO) =?Utf-8?B?Q2hyaXN0eQ==?= Microsoft Excel Programming 2 4th Mar 2005 06:41 PM
copy worksheet from closed workbook to active workbook using vba =?Utf-8?B?bWFuZ28=?= Microsoft Excel Worksheet Functions 6 9th Dec 2004 07:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:21 AM.