+ Reply to Thread
Results 1 to 8 of 8

Combine all worksheets into a single worksheet in a new workbook

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Combine all worksheets into a single worksheet in a new workbook

    I have the following code to copy one sheet at a time to a "master" worksheet (Toyota") in the same workbook

    What I need to do is copy all worksheets onto a single worksheet in a new workbook (only rows with data in column A)

    In this example "RAV4" is the source sheet
    Please Login or Register  to view this content.
    Thanks in advance


    Alan
    Last edited by ajm1949; 04-02-2012 at 03:10 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Combine all worksheets into a single worksheet in a new workbook

    Hi Alan,

    So just to clarify - you want to create a standalone Excel file for each and every tab from the workbook where the macro is run?

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Combine all worksheets into a single worksheet in a new workbook

    Hi Robert

    Yes you have the right idea. Every tab in the workbook should be combined into one worksheet (tab) in a new workbook

    Cheers

    Alan

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Combine all worksheets into a single worksheet in a new workbook

    Not sure if you've really answered the question, but we'll see after you run this I suppose:

    Please Login or Register  to view this content.
    Robert

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Combine all worksheets into a single worksheet in a new workbook

    Hi Robert

    I guess I didn't explain quite well enough.

    Data from each worksheet should be copied underneath the previous one(omitting any rows with any empty cell in column A) so the end result is a single workbook with one tab containing all the data from the source file.

    My original code does this one sheet at a time but I have to change the name of source sheet in the code and run it again for every sheet.

    It also puts all data on the "Toyota" tab in the same workbook but this is not a big issue. A separate workbook would be nice but not necessary

    I hope this makes it a bit clearer. See also attached sample file

    Alan
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Combine all worksheets into a single worksheet in a new workbook

    OK - I think (hope) I have it now:

    Please Login or Register  to view this content.
    HTH

    Robert

  7. #7
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Combine all worksheets into a single worksheet in a new workbook

    Hello Robert

    That works perfectly

    Many Thanks

    Alan

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Combine all worksheets into a single worksheet in a new workbook

    Hi Alan,

    Glad to hear it and you're welcome.

    Thanks also for adding to my reputation

    Regards,

    Robert

+ 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