+ Reply to Thread
Results 1 to 5 of 5

Copy data to a closed workbook

  1. #1
    Registered User
    Join Date
    09-13-2008
    Location
    Australia
    Posts
    12

    Copy data to a closed workbook

    how do i copy the data from cell C1 in the active workbook "name1.xls"
    to cell D10 in the closed workbook "name2.xls" in "sheet1" without opening the
    closed workbook?

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    You don't. You'll have to open it up first.

    Richard

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can do it with code, but as Richard says you will need to open the workbook first. This can be hidden from the user.

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    09-13-2008
    Location
    Australia
    Posts
    12
    thanks, your code worked great.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by zinny View Post
    thanks, your code worked great.
    Then you should mark the Thread solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to Read/Write Data to/from a closed workbook
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2008, 10:02 AM
  2. How can I speed up this slow macro?
    By rs2k in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2008, 08:34 PM
  3. VB to copy variable amounts of data and paste to another workbook
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2007, 05:13 PM
  4. copy data in to different columns
    By jon_nic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2007, 07:25 AM
  5. Copying data from one workbook to another
    By Stealth in forum Excel General
    Replies: 4
    Last Post: 12-04-2006, 04:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1