Solved

Import Filename with XML data in Excel

Posted on 2014-12-01
2
188 Views
Last Modified: 2014-12-02
I have 1000's of XML files that I can import into a single Excel 2007 sheet.  The problem is that the file name is the unique identifier and I need to import this together with the XML data.  I have attached the XMLImport.xlsm which has the code to import multiple XML files.  The part which is missing is the file name.  Any assistance would be greatly appreciated.
XMLImport.xlsm
135878.xml
985658.xml
0
Comment
Question by:Karmile
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40475415
Nice coding!

Just three extra lines needed - I have marked them with 'NEW
XMLImportWithFileName.xlsm
0
 

Author Comment

by:Karmile
ID: 40475572
Perfect!  Thank you Phillip.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question