Results 1 to 2 of 2
  1. #1
    mobrussels is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    1

    Post Import multiple XML files into tables based on listed files in Excel

    Objective: To import multiple XML files into MS Access tables (Header+Elements) based on listed files in a separted Excel file



    Dear Forumers,

    In directory called 'Index', I have an excel spreadsheet containing a list of xml files (name + extension + source directory as path).
    In different directories called 'XMLS_in_xxx', I have different xml's stored (name + extension) stored
    I have designed a 'Header' table and an 'Element' table into my Access DB.

    I would like to add a VBA script that can read my EXCEL files list and get each listed xml file from the indicated source path and store it in my Access tables (Header and Elements).

    Can someone help please ?


    Thanks in advance and regards,
    MoBrussels

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Code can open the Excel file then options:

    1. open a recordset of the xml files list, loop through the recordset

    2. loop through rows of the sheet by cell referencing

    You are essentially asking us to do your work without enough details to accomplish. There are many examples of VBA opening and manipulating Excel objects. There are examples of importing xml files. Will require customization for your circumstances. Tackle one step at a time. Do some research and when you have code with specific issue, post question.
    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.

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

Similar Threads

  1. Import multiple Excel Files into 1 access table
    By jurbin in forum Import/Export Data
    Replies: 1
    Last Post: 05-15-2015, 01:45 PM
  2. Import Multiple Excel Files with SAME layout to Access
    By torontoraptor in forum Programming
    Replies: 2
    Last Post: 05-12-2014, 10:29 AM
  3. Replies: 1
    Last Post: 03-25-2014, 08:54 PM
  4. Replies: 9
    Last Post: 10-31-2013, 06:51 AM
  5. Import multiple files from one location to new tables
    By shmalex007 in forum Import/Export Data
    Replies: 1
    Last Post: 01-05-2012, 03:49 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