+ Reply to Thread
Results 1 to 4 of 4

Macro to transfer data from multiple workbooks into separate sheets of master file

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Macro to transfer data from multiple workbooks into separate sheets of master file

    Hello,
    I am new to macro but I know that this excel feature can help me a great deal.

    The task is to copy and paste 20+ summary reports found in specific tabs named "Pivot" that exist in multiple workbooks located within the same folder located
    in H:\Balance Sheet 2013

    The macro will copy and paste pivot tables (summary reports) found in tabs named Pivot each into a separate worksheet within
    a file called Balance Sheet Summary. The data to be transferred, from the summary reports to the Balance Sheet Summary workbook, always start on cell A3 but each summary report has different number of columns and different number of rows (some can be very large files).
    Report users will still be able to drill down on the information residing behind these pivot tables.

    Ideally the macro will name each new tab created with a combination of data found within cell B5 and cell C5.
    Example B5="WE" and C5="201343" the result is "WE 4313".
    Example B5="WA" and C5="201312" the result is "WA 1213".
    But this is optional.

    Is this something achievable or I am just kidding myself?

    Any advice/help is much appreciated.
    Many thanks
    Sal

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro to transfer data from multiple workbooks into separate sheets of master file

    This is very achievable, but how will you know what column goes where when they have different number of columns?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    07-05-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Macro to transfer data from multiple workbooks into separate sheets of master file

    Hello Mike,
    You raise a valid point.

    Although the number of columns may differ among workbooks the aim is to have one summary pivot report copied and pasted in a new worksheet within the master report. So if there are
    30 workbooks each containing a summary pivot report the macro will have created 30 worksheets within the master balance sheet summary. All summary pivots have the exact same format with reference to where it starts A3.

    thought that if the macro, while looping through the workbooks, was to to highlight and copy the entire worksheet and then paste all this in the balance sheet summary report in a newly created worksheet the problem of having a different number of columns would not be an issue, because each pivot table (summary report) would have its own worksheet tab inthe balance sheet summary report.

    I hope it makes sense.

    Thanks again.
    Sal

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Macro to transfer data from multiple workbooks into separate sheets of master file

    I am still not exactly sure what you are trying to accomplish but I typically find it easier to standardize the data into a single data tab then use that to make all the pivots. If I remember correctly this will keep the file size down as all the pivots will be using the same dataset and link to the same cache. I am not 100% on that but I do know that having multiple datasets and multiple pivots will grow the filesize substantially.


    Nonetheless I suggest always posting a sample workbook or two to indicate what you are trying to do, otherwise we all just waste time typing about how to do something instead of actually doing it

+ 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. Replies: 12
    Last Post: 04-18-2014, 09:05 AM
  2. Replies: 1
    Last Post: 10-24-2013, 01:05 PM
  3. macro for importing sheets from multiple workbooks into a master workbook
    By newby2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2013, 01:09 PM
  4. Help on macro to automatic transfer of data from multiple workbooks to master wkbk
    By ryuytsuken in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 06:16 PM
  5. Macro to Transfer data from multiple sheets into rows on a master sheet
    By serrone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2013, 06:35 AM

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