View Single Post
 
Old 05-20-2024, 07:39 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

OK, now I understand what you are saying about levels but I don't see the point of trying to apply that logic. If you working with hard coded search parameters (toSearchX) then you already know all four levels and the code is just revealing something you already know.

Regardless, looking at this line shows you have a key piece of info in the innerText value
Code:
Debug.Print "", .Item(i), .Item(i).innerText
The result in your immediate window shows the count of found items eg
Code:
about:al.html Alabama(33)
about:al/huntsville.html    Huntsville(4)
I would expect that if the brackets show (1) then the result has only one possible location
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote