+ Reply to Thread
Results 1 to 8 of 8

Copy range of data from all workbooks in folder and paste to multiple sheets in new book

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Copy range of data from all workbooks in folder and paste to multiple sheets in new book

    Hello, I've researched many similar examples but none that I've found meet my needs and my VBA skills aren't good enough to adapt. Please would someone kindly help. I have a folder containing workbooks which I want to copy a specific range of data from one named worksheet and then paste into a newly created worksheet in a summary workbook where the new worksheet is labelled with the source workbook name.

    The source data folder contains a variable number of workbooks (probably between 5 and 25) so the new summary workbook would contain a variable number of worksheets.

    The source workbook would be named eg. 201905TV21 (year 2019, week 05, manager TV, project 21) and this would become the label for the new worksheet into which the range of data would be copied. This is so that the origin of the data is confirmed in the summary workbook.

    Could someone help me to get on the right track with this please?

    Thanks,

    Jess
    Last edited by Brontosaurus; 02-19-2019 at 06:28 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    Does this help ? http://www.rondebruin.nl/win/addins/rdbmerge.htm
    ( there is also code version at http://www.rondebruin.nl/win/section3.htm)

  3. #3
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    Thank you for your suggestion. I had already looked at this but all of the versions Ron offers combine the data into one worksheet. None of the examples I've found copy the data from the source worksheet range and paste it into a new worksheet.

  4. #4
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    Hi, I've copied/modified this code which I found. It runs but ...

    1. it doesn't copy the data across.
    2. I need it to paste the data into separate worksheets in the target workbook. That is;

    source workbook 1 data copied to target workbook x worksheet 1
    source workbook 2 data copied to target workbook x worksheet 2
    source workbook 3 data copied to target workbook x worksheet 3 etc.

    Please would someone help with the necessary modification to the code?

    Thanks,

    Jess

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    Is there a chance someone may help with this please or let me know if I should present it differently?

    Thanks,

    Jess

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    You could try a macro like this and see if that works for you.

    Please Login or Register  to view this content.

    As this macro adds a new sheet for each file it reads data from I would suggest that you put the macro in a file with only 1 sheet.

    Alf

  7. #7
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    Sorry, I've only just seen this reply. Thank you very much.

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Copy range of data from all workbooks in folder and paste to multiple sheets in new bo

    No problem

    You are welcome and thanks for feedback and rep

    Alf

+ 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. [SOLVED] Copy Range from multiple Workbooks in folder, to Summary Workbook also in same folder?
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-24-2018, 01:22 PM
  2. Copy Paste Values from multiple workbooks to multiple sheets in one workbook
    By tatendamark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2017, 09:54 AM
  3. Replies: 2
    Last Post: 10-23-2015, 10:32 AM
  4. Pulling Data From Multiple Workbooks/Multiple Sheets into one Master Book
    By LSUARefugee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2013, 12:37 PM
  5. Copy Paste Data across Workbooks with multiple sheets & Referencing.
    By v999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 09:16 AM
  6. copy & paste data from multiple workbooks to new workbook in a folder
    By Ignesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2012, 03:11 AM
  7. Replies: 3
    Last Post: 02-06-2011, 05:29 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