G
Guest
Hello,
is there any count function for an XML object in VBA? i could count the
nodes by a loop but then i don't know how to return to the begining.. any
thoughts?
Set domDoc = XMLobj.GetNext(10000)
Dim row As Object
Dim countmyXMLRecords As Integer
Set row = domDoc.selectNodes("//row")
For r = 0 To row.Length - 1
countmyXMLRecords = countmyXMLRecords + 1
Next
but then if i want to use it further, the cursor is at row 10,000...
thanks,
dan.
is there any count function for an XML object in VBA? i could count the
nodes by a loop but then i don't know how to return to the begining.. any
thoughts?
Set domDoc = XMLobj.GetNext(10000)
Dim row As Object
Dim countmyXMLRecords As Integer
Set row = domDoc.selectNodes("//row")
For r = 0 To row.Length - 1
countmyXMLRecords = countmyXMLRecords + 1
Next
but then if i want to use it further, the cursor is at row 10,000...
thanks,
dan.