+ Reply to Thread
Results 1 to 3 of 3

Copy values from multiple closed workbooks to a summary worksheet

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Question Copy values from multiple closed workbooks to a summary worksheet

    Hello all, I am a very fresh hand in VBA with knowledge limited to recording Macro. I am currently working on +100 workbooks in different folder and need to consolidate the data from each workbooks into one consolidation worksheet. All workbooks(questionnaire) are in identical format. The cells I need to copy from each workbook (the answer) are B2, B4, E28, I32:I36, I40:I45 and M26. The cell values are going to be input in horizontal lines and next row will be the next answer received(next workbook). When i search through the internet, i found one impressive source code that almost suit my need. However, i do not know how to get the values of other cells as the code only copy values in a range instead of multiple ranges/ cells. How can i edit the code to suit my need? I welcome any advice with new code.

    Source code i google is as per below:

    Please Login or Register  to view this content.

    Thank you very much!



    Moderator's Note:Welcome to the forum. You have to put code tags around codes. Select the codes then hit the "#" sign. I'll do it for you this time. Thank you.
    Last edited by vlady; 11-27-2012 at 03:09 AM. Reason: code tags

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Copy values from multiple closed workbooks to a summary worksheet

    You could call GetData for each area
    Please Login or Register  to view this content.
    ...etc.


    Or alliteratively, you could copy one large area e.g.; B2:M45 to a temporary location and then copy specific values from that temporary location to your specific columns and rows.

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Copy values from multiple closed workbooks to a summary worksheet

    Thank you! but it didn't work smooth. It keeps on popping error message.

+ 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