vbscript error with Repeating Tables

M

Mike B

After searching for a while and trying different approaches I finally
found a way, that I was able to understand, to retrieve a cell on each
row in a repeating table. My problem is that while the code works, in
that it displays the contents that I am looking for, I also get an
error Object required 'objTheRow'. I am not sure why I am getting this
as it seems that everything works. Could someone take a quick look at
my code and point out where I went wrong?

set LeaveType = XDocument.DOM.selectNodes("//my:blah")
for i=0 to LeaveType.length

set objTheRow = LeaveType.item(i)
msgbox objTheRow.selectSingleNode("my:blah").text
Next


Thanks,
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top