+ Reply to Thread
Results 1 to 3 of 3

How to merge multiple excel files..?

  1. #1
    Registered User
    Join Date
    01-05-2010
    Location
    Sunrise, Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to merge multiple excel files..?

    Hi all, please excuse my new-bee-ness..I have searched far and wide and can not get an answer...

    Situation: I have about 80 excel files I have to input into a database for access.
    Problem: Instead of loading one file at a time (Access import external data allows only one at a time) I wish to upload one file with all the 80 files in one.
    My proposed solution: I was thinking, open each excel workbook, and then move the tab from each of the 80 workbooks into one main workbook (that i will use, ie like a hub)..Then once the main workbook is complete with the 80tabs, I will find a way to move the data from the tabs into one single tab to upload!

    Please assist if you know a smarter, faster way to do this...I have do not want to do this tedious work

    PS: All the files have the same headers, and the tab2 is the one i want, which they all open to tab 2 when you open the files.
    Last edited by clone000; 01-06-2010 at 05:52 PM.

  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: Urgent Help with merging multiple excel files..

    This is my stock macro for this task. You'll need to edit the sections in red so that it functions the way you want.

    Please Login or Register  to view this content.
    Just name your "Master" sheet for the import and put in the ROW1 headers. The macro will do the rest.
    Last edited by JBeaucaire; 01-05-2010 at 06:09 PM. Reason: a couple of tweaks, user should put the row1 titles in ahead of time.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    01-05-2010
    Location
    Sunrise, Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Urgent Help with merging multiple excel files..

    Thanks - did everything but getting

    Runtime Error 9 on the below text (in yellow);
    Please Login or Register  to view this content.
    let me know the specific steps if I am missing something..

    Essentially,
    I created a master file and put it into a folder called "Done".
    Then i changed the paths and dest paths, and ran the macro but got the error above...

    I can see this almost working, what am i doing wrong tho

    columns in use is A to O, but the data could be as long as line 1,000 (row).
    Last edited by Paul; 01-06-2010 at 05:54 PM. Reason: Added code tags around code. Please do so yourself in the future, thanks.

+ 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