Sorry for the newbie question, but this is driving me nuts. I am trying to access each link individually, but am having trouble. When I try this:
htmldoc = DirectCast(Explorer.Document, mshtml.HTMLDocument)
Debug.WriteLine(htmldoc.links(2).innerText) 'writing innerText of second link
I keep getting this message: Interface 'mshtml.IHTMLElementCollection' cannot be indexed because it has no default property.
Any ideas?
htmldoc = DirectCast(Explorer.Document, mshtml.HTMLDocument)
Debug.WriteLine(htmldoc.links(2).innerText) 'writing innerText of second link
I keep getting this message: Interface 'mshtml.IHTMLElementCollection' cannot be indexed because it has no default property.
Any ideas?