Hey guys. I've been all over google, and can't seem to find what I'm looking for. I'm trying to loop through all the elements of a website, and record the element's ID. I'm not sure how to store the object's id. Here's what I got so far:
Code:
Dim o As Object
For Each o In IE.Document.All
mapWS.Cells(lRow, i * 3) = IE.Document.getElementByID(o).innertext
mapWS.Cells(lRow, (i * 3) + 1) = o.innertext
lRow = lRow + 1
Next o