Solved

Import Filename with XML data in Excel

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

691 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