+ Reply to Thread
Results 1 to 2 of 2

Macro to Merge many files to one

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    11

    Macro to Merge many files to one

    Macro to Merge many files to one


    I have excel files in a folder, All files have same no of columns,
    I need a macro that copies the data from all files in New file and save new file in different location.

    My data in File 1 :

    A1 = 1XYZ, B1 = 1ABC C1 = 1BHY
    A2 = 1BHU, B2 = 1ABD C2 = 1BNJ

    My data in File 2 :

    A1 = 2XYZ, B1 = 2ABC C1 = 2BHY
    A2 = 2BHU, B2 = 2ABD C2 = 2BNJ

    Expected Output :

    A1 = 1XYZ, B1 = 1ABC C1 = 1BHY
    A2 = 1BHU, B2 = 1ABD C2 = 1BNJ
    A3 = 2XYZ, B3 = 2ABC C3 = 2BHY
    A4 = 2BHU, B4 = 2ABD C4 = 2BNJ

    Kindly do the needful.

  2. #2
    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 Merge many files to one

    'WORKBOOKS TO 1 SHEET STACKED
    Here's a macro for collecting data from all files in a specific folder.The parts of the code that need to be edited are colored to draw your attention.
    Last edited by JBeaucaire; 12-26-2019 at 04:47 PM.
    _________________
    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!)

+ 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. Macro to merge row information from two files
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2014, 03:06 PM
  2. [SOLVED] Macro-to-merge-different-excel-files-into-one
    By Abhilash B in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 10:17 AM
  3. [SOLVED] Macro to Merge different Excel files into one
    By sukanyae in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2012, 10:27 AM
  4. Merge two different PDF files through excel macro
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2012, 10:27 AM
  5. [SOLVED] need help writing macro to merge two files
    By bhuvana23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2012, 06:17 PM

Tags for this Thread

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