if i open firefox or edge or chrome the web return a table with result, and in IE not????
for test:
1) select tab vista territoriale
2) checkbox tutti i comuni della provioncia selezionata
3) in dropdown select Agrigento
4) click on Cerca
now the tabkle of content is show!!!
With my code usin IE, not show the table of result!!!
Option Explicit
Sub PROVA()
Dim IE As Object, T As Integer, Title As Object
Dim oHtml As HTMLDocument, post As Object
Set IE = CreateObject("internetexplorer.application")
With IE
.Visible = True
.navigate "
Do While .Busy
DoEvents
Loop
Do While .readyState <> 4
DoEvents
Loop
'CLICK SU VISTRA TERRITORIALE
.document.getElementById("tab-1").Click
'CHEKBOX TUTTI I COMUNI
.document.all("territorio")(3).Checked = True
'SELEZIONO UN ITEM PROVINCIA NEL COMBOBOX
Set Title = .document.getElementById("province-1")
'CONTO E PRENDO IL NOME DELLE PROVINCE NEL COMBOBOX
Set oHtml = .document
For Each post In oHtml.getElementById("province-1").getElementsByTagName("OPTION")
Debug.Print T & "-" & post.innerText
T = T + 1
Next
Title.selectedIndex = 105
'CLICK CERCA
.document.getElementById("btnricerca-1").Click
End With
End Sub
for test:
1) select tab vista territoriale
2) checkbox tutti i comuni della provioncia selezionata
3) in dropdown select Agrigento
4) click on Cerca
now the tabkle of content is show!!!
With my code usin IE, not show the table of result!!!
Option Explicit
Sub PROVA()
Dim IE As Object, T As Integer, Title As Object
Dim oHtml As HTMLDocument, post As Object
Set IE = CreateObject("internetexplorer.application")
With IE
.Visible = True
.navigate "
Do While .Busy
DoEvents
Loop
Do While .readyState <> 4
DoEvents
Loop
'CLICK SU VISTRA TERRITORIALE
.document.getElementById("tab-1").Click
'CHEKBOX TUTTI I COMUNI
.document.all("territorio")(3).Checked = True
'SELEZIONO UN ITEM PROVINCIA NEL COMBOBOX
Set Title = .document.getElementById("province-1")
'CONTO E PRENDO IL NOME DELLE PROVINCE NEL COMBOBOX
Set oHtml = .document
For Each post In oHtml.getElementById("province-1").getElementsByTagName("OPTION")
Debug.Print T & "-" & post.innerText
T = T + 1
Next
Title.selectedIndex = 105
'CLICK CERCA
.document.getElementById("btnricerca-1").Click
End With
End Sub