+ Reply to Thread
Results 1 to 3 of 3

VBA Excel Merge multiple workbooks

  1. #1
    Registered User
    Join Date
    MS-Off Ver
    2010 and 2013

    VBA Excel Merge multiple workbooks

    Hi All,

    I have been researching online and found a piece of VBA code which I have edited to match my needs (working). The code is setup to look at a folder location and merge all excel .xlsx files into a master sheet. However, I am having difficulty amending the code to only read and copy a specific sheet from the source files. I only need to copy one specific sheet ("Sheet2") from each file :-). Appreciate the help:

    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 10-24-2019 at 11:14 AM.

  2. #2
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    MS-Off Ver
    Excel 2010 on Linux

    re: VBA Excel Merge multiple workbooks

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

  3. #3
    Forum Expert
    Join Date
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010


    Hi !

    Quote Originally Posted by MXCG2016 View Post
    I only need to copy one specific sheet ("Sheet2") from each file
    If all workbooks have the same 'Sheet2' worksheet name with a same layout to import in a main workbook
    then there is a faster way in an one go than opening each workbook within Excel,
    so if you could attach 2/3 source samples workbooks and the expected result main workbook

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread


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