+ Reply to Thread
Results 1 to 2 of 2

macro to consolidate other excel files into one

  1. #1
    Registered User
    Join Date
    08-01-2015
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    3

    macro to consolidate other excel files into one

    Dear all,


    I would like to post following request:


    On my network there is a folder called "a" with a changing number of subfolders. In each of these folders there is a changing number of excel files, all of them with different unknown names. There is also something the files have in common: they all have - beside Sheet1, Sheet2 and Sheet3 - a sheet callled "Name" with data starting at line 5 and in columns A till X. The number of filled lines is random per file.

    My question:

    I would like to make a consolidated excel file in which I can load all the different sheets callled "Name" of the different files. This consolidated excel file has the same format as all the other excel files, meaning it also has a sheet called "Name" (or we can call it "ConsolidatedName" to make it easier) and it captures the data starting line 5 and in columns A till X.
    I would like to add two more details on the right side; in column Y the name of the file where the data line comes from should appear and in column Z the name of the folder where the line (and the excel file of column Y) should appear.

    I allready started but it's not in an end state yet:

    Please Login or Register  to view this content.

    Who can help me out??
    Last edited by alansidman; 12-28-2015 at 09:06 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: macro to consolidate other excel files into one

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    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, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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 consolidate data from a particular worksheet on different excel files
    By jeffboy29 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2015, 02:02 PM
  2. Macro to export excel files from outlook folder and consolidate
    By xxxnac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2014, 02:18 PM
  3. How to Join Two Excel Files Consolidate Files
    By danitydazzle in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-07-2014, 06:42 PM
  4. Macro to consolidate excel files in one database file
    By VKR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2013, 02:18 AM
  5. [SOLVED] Macro to read the multiple csv files and consolidate into single excel
    By parthmittal2007 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-03-2013, 03:40 AM
  6. need macro to consolidate data from .xml files.
    By sekharyadav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 11:03 AM
  7. Excel Macro to consolidate 10 excel files in 1
    By galatians220 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2012, 09:21 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