Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing an XML file Into Excel 2003

Status
Not open for further replies.

Trudye

Programmer
Sep 4, 2001
932
US

I finally figured it out. This is one way to pull an XML file into Excel, you must be running MS Office 2003. I am sure there are better ways but here is what I did.


Code:
ActiveWorkbook.XmlImport URL:="X:\Pre-Sale Inspections\outgoing\" & TodaysFile, ImportMap _
        :=Nothing, Overwrite:=True, Destination:=Range("$A$1")

Voila! It was that easy and Dum-Dum me spent 2 days trying to figure it out. FYI: 'TodaysFile' is a global declaration created after formating todays date and concatinating that to a filename.

Hope this helps someone out there,
Trudye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top