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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Data

Status
Not open for further replies.

SJW62

Programmer
Aug 30, 2005
5
US
I am a new user of VBS. I have a web site that when given the
(URL, with arguments, returns, XML formatted data. I would like to pull that
data into some sort of record set that I can walk through. I need to do
this dynamically. What object should I use?


Thank you,



Steve
 
Like this, assuming that ADO works the same in VBA as it does in VB:

Code:
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "myxmlfile.xml", "Provider=MSPersist"

If it doesn't, perhaps someone else can show how to use ADO.

HTH

Bob
 
Thanks for the help BUT "ADODB.Recordset" dose not appear to be valid for Excel’s VBA. The error I get is "User-defined type not defined”.
 
You have to reference the Microsoft ActiveX Data Objects 2.x Library.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top