Code:
Sub LIST_DROPDOWN()
Const URL As String = "[URL unfurl="true"]http://anagrafe.cng.it/anagrafe/geometri.aspx"[/URL]
Dim IE As New InternetExplorer, oHtml As HTMLDocument, post As Object, R&
With IE
.Visible = True
.Navigate URL
Do While .Busy: DoEvents: Loop
While .Busy Or .ReadyState < 4: DoEvents: Wend
Set oHtml = .Document
End With
'Application.Wait Now + TimeValue("00:00:02")
For Each post In oHtml.getElementsByClassName("dxeListBoxItemRow")
With post.getElementsByTagName("td")
Debug.Print .Item(0).innerText
End With
Next post
End Sub
the code get twice the item in dropdown!!!!