+ Reply to Thread
Results 1 to 5 of 5

Macro to copy data from multiple sheets to one (new) master sheet

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macro to copy data from multiple sheets to one (new) master sheet

    Hi;

    I have a large amount of sheets (500+) in a workbook. Each sheet is named with a serial number but not all sheets are sequentially numbered. The data locations within each sheet are identical, but not in one simple row. I need to copy about 15-20 data points from each sheet into the next blank row of a new master sheet (I'll call it MASTER). I want to end up with one sheet with 500 rows rather than one workbook with 500 sheets. Then I'll be able to better analyze the data. So for example: I want to copy H3 from (Sheet)1234 to A1 of MASTER, B3 from Sheet1234 to B1 of MASTER, C4 from Sheet1234 to C1 of MASTER...etc. and continue for about 17 other datapoints from the first sheet)then...H3 from (Sheet)1245 to A2 of MASTER, B3 from (Sheet)1245 to B2, C4 from Sheet1245 to C2, etc... I'm not sure if one macro can do this for all sheets or if I would need to run the macro from within each of my sheets.....any help or advice you can provide would be greatly appreciated!!

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

    Re: Macro to copy data from multiple sheets to one (new) master sheet

    Please Login or Register  to view this content.



  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to copy data from multiple sheets to one (new) master sheet

    My hat's off to SNB for another marvelous macro.

    But taking to heart his signature, you might find this less elegant approach at least easier to understand.

    In the workbook you want to merge, add a new sheet called SUMMARY, then run this:
    Please Login or Register  to view this content.

    Having said that, if SNB's works for you and you can edit it as needed, it is far more efficient.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    02-01-2011
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    4

    Smile Re: Macro to copy data from multiple sheets to one (new) master sheet

    Hello JB and snb;

    A HUGE thanks to both of you for the quick replies with solutions. Although I didn't understand SNB's code suggestion I do appreciate its simplicity and plan to try it out. JB - I tried your suggestion and it worked perfectly!

    Thanks again,
    Todd

  5. #5
    Registered User
    Join Date
    08-24-2012
    Location
    cape town, s africa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Macro to copy data from multiple sheets to one (new) master sheet

    I'm looking at copying data blocks from 300 sheets into sheet 1, one below the other.
    Will test both methods & post result. Thank you for the valuable information.

+ 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