Solved

Import Filename with XML data in Excel

Posted on 2014-12-01
2
177 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

773 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