Results 1 to 2 of 2
  1. #1
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Excel/Access Import


    One department bent on sticking with Excel wants some contents stored in Access. They give me the Excel workbook daily which contains several sheets...I need to transport contents from one of the sheets (multiple cells on that sheet) to an Access database. I'm not sure how to do this. Plus, the Macro can be on the Excel side to export or on the Access side to import, doesn't matter to me. Has anyone had any experience with this and can give me some suggestions? Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    my method:
    Save 1 old excel file to a generic file like File2Import.xls
    LINK this file as an attached table in access...tXLfileToImport
    build a query to import the data ...qaImportXLfile
    put this query in a macro: mImportXLfile
    cmd: openquery qaImportXLfile


    now the import process is just 2 steps:


    1. Get a new excel file, save it to the same name everytime, File2Import.xls
    2. run the import macro.
    done


    if you have many SHEETS in the workbook, youd:
    attach EACH sheet as a table
    then make a query for each table, put all in macro.

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. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 PM
  3. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  4. Import Excel to Access
    By kilo21 in forum Import/Export Data
    Replies: 6
    Last Post: 05-21-2012, 11:18 PM
  5. Import from Excel to Access
    By Phred in forum Programming
    Replies: 13
    Last Post: 05-16-2012, 12:25 AM

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