Hi all,
I've got a bit of code that pulls data from a website and then handles it.
Part of the code is the following:
On Error GoTo nxc
title = exttable.getElementsByClassName("catdata")(3).getElementsByTagName("tr")(1).innerText
where on encountering an error, going to nxc means skipping the whole code and goes to the "next cell" (hence nxc
)
When I run this on an url that would error out on the "title" line, it gracefully skips the code by going to nxc and then runs the next url.
However, the next url errors out on the same line, yet instead of skipping it, it will give me an error saying :
Run-time error '91':
Object variable or With block variable not set
I know what causes the error. I do not know why it won't skip to nxc the second time around.
Does anyone have any bright ideas for me?
Bookmarks