Results 1 to 3 of 3
  1. #1
    torontoraptor is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Posts
    5

    Import Multiple Excel Files with SAME layout to Access

    Hi,



    I was wondering how do I import/code in order to import multiple excel files into the database. I want to choose where specific data goes from excel into my fields in access but it will follow the same layout throughout.

    thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Options depend on exactly what you want to import from the Excel and where the files are.

    VBA code can loop through files in a folder and import every Excel file it finds. Can use TransferSpreadsheet method if the Excel sheet structure is simple enough and only want sheet 1. The method can even reference a saved import specification. More complicated would be opening Excel objects and selectively grabbing data from sheets.

    Common topic. Here is one recent thread https://www.accessforums.net/import-...ort-42980.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    I just had to do the same thing, here is my thread on it.

    https://www.accessforums.net/import-...ess-43719.html

    I manually imported the first file and checked to make sure the right data went to the right places. Ran that little function and 30 seconds later it was all done and all worked great.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 06-16-2014, 08:37 AM
  2. Replies: 1
    Last Post: 03-25-2014, 08:54 PM
  3. Replies: 9
    Last Post: 10-31-2013, 06:51 AM
  4. Replies: 1
    Last Post: 06-27-2012, 07:39 AM
  5. Replies: 3
    Last Post: 10-06-2011, 06:53 AM

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
  •  
Other Forums: Microsoft Office Forums