+ Reply to Thread
Results 1 to 7 of 7

Copying from a closed workbook

  1. #1
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Copying from a closed workbook

    I have a large project I am trying to speed up. First task is once modified, to use this code which I found from web searching -

    Please Login or Register  to view this content.
    I can get this to retrieve a single cell of data but need it to do the following -
    From a module in a destination workbook retrieve an entire column from a source workbook. For example column C in source workbook "data.xls, sheet3" is copied in it's entirety to column A in destination workbook "Summary.xls, sheet4".

    Any assistance is (as always) greatly appreciated.

    Many thanks

    Dave H
    Last edited by Dave H9; 06-15-2011 at 03:09 AM.

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Copying from a closed workbook

    Here is something I picked up on a google, See if you can modify for your needs.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    .
    Post back any issues, I ran some tests and it seemed to work well...

    ...
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  3. #3
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: Copying from a closed workbook

    Fantastic Mike thank you very much, this works exactly as I need.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copying from a closed workbook

    or

    Please Login or Register  to view this content.



  5. #5
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: Copying from a closed workbook

    Many thanks snb, I'll give that method a try also.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copying from a closed workbook

    Another alternative using a querytable:

    Please Login or Register  to view this content.
    In English
    Please Login or Register  to view this content.
    Adapt:
    - E:\OF\adressen 001.xls
    - Blad1$

  7. #7
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: Copying from a closed workbook

    Thanks again snb,

    Can either of these be used in reverse ie write to closed workbook? I have just started a new thread on this topic here. I would be very grateful if you could give some input.

    Dave H

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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