Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default copy to closed workbook on a different drive

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.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default copy to closed workbook on a different drive

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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default copy to closed workbook on a different drive

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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default copy to closed workbook on a different drive

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
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
hi, i am trying to copy data to closed workbook ritu Excel Programming 2 April 24th 06 09:07 PM
copy from closed workbook again! ;( Christy Excel Programming 6 March 4th 05 10:33 PM
Copy data from a closed workbook (ADO) Christy Excel Programming 2 March 4th 05 06:41 PM
Possible to copy sheets into another (closed!) workbook? Grotifant Excel Discussion (Misc queries) 5 February 23rd 05 08:55 AM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM


All times are GMT +1. The time now is 07:44 AM.

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

About Us

"It's about Microsoft Excel"