I am accessing a website using VBA Excel and trying to access the third <li>
which is in the search_tab
class. How can I click this <li>
tag using VBA Excel code?
I have already opened Internet Explorer as IE
and tried to the code below but it is not working.
For Each l In IE.document.getElementsByTagName("a")
If l.href = "#SearchTab" Then
l.Click
Exit For
End If
Next