+ Reply to Thread
Results 1 to 2 of 2

Consolidating excel files from a directory

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    37

    Consolidating excel files from a directory

    Hey,

    I am trying to copy a tab from multiple excel files into one master workbook. Here the specifications;

    1) marco needs to copy a tab from the excel file and paste value in the masterwork book. For the next excel file it copies, move it to new tab in the master workbook and so on for the next.




    Note that there are 20 excel files in the directory and the name of the files are the same and the tab name to copy same as well.

    Can anyone help with this request?

  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: Consolidating excel files from a directory

    1) There can't be two files in the same directory with the same name, so I think you've misstated there.
    2) The sheet IN those files can be the same name and can be renamed prior to import, no problem there.


    -------------
    'WORKBOOKS TO SHEETS
    Here's a macro for collecting data from all files in a specific folder. This version copies the sheet in as a whole.The parts of the code that need to be edited are colored to draw your attention.
    -------------------

    That should get you most of the way there. The one tweak based on your goal to have no formulas in the copied sheets....this section:
    Please Login or Register  to view this content.
    Possibly change to this:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-26-2019 at 04:26 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. Replies: 5
    Last Post: 11-19-2013, 04:11 PM
  2. Macro to Move files from one directory to other directory
    By Shanthuday in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 07:21 AM
  3. [Solved] Consolidating of Excel files
    By Abdul Salam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2012, 12:01 PM
  4. Reading in the files in a directory into an array, directory chosen by user
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2011, 12:52 PM
  5. [SOLVED] Consolidating Several Excel Files
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-16-2006, 12:30 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