views:

305

answers:

3

So I was just looking for basic examples of reading xml structure data with visual basic subs/scripts.

specifically, if possible, how can i take structure data of xml, read the data with some vba, and lay it into excel spreadsheets?

or just a learning resource for this type of thing. thanks very much!

+2  A: 

These three topics will help you get started.

1) Load the XML using MSXML hint - XMLDOC.Load ("D:\folder\yourXML.xml")

2) Read the data with XPath or XML navigator

3) Build Excel Spreadsheet Using Microsoft Excel Object Model

Jason Rowe
thanks...i do appreciate it! this will definately help alot!
Justin
+1  A: 

w3Schools has a good tutorial on the XML DOM.

Tester101
+2  A: 

http://www.dailydoseofexcel.com/archives/2009/06/16/reading-xml-files-in-vba/

http://www.dailydoseofexcel.com/archives/2010/01/21/culling-you-rss-feeds/

These aren't tutorials, just a couple of examples of XML in Excel that might help you identify the objects properties and methods. The first one from 2009 was my first attempt (read: it's terrible) but the comments were helpful for me so they might be helpful for you too.

Dick Kusleika
this will help me...thanks for sure!
Justin
@dkus I'm impressed that you even *attempted* to read XML from within VBA. Very well done and thanks for the link!
Ben McCormack