Sub AMBI_lottobook()
Dim IE As Object
Dim HTML As Object
Dim MYTABLE As Object
Dim AMBO As String, T As Integer, NUMCELLE As Integer
Dim R As Long, L As Integer, RUOTA As String
Dim C As Long, S As Integer, NUMTAB As Integer
Dim FREQ As String
Set IE = CreateObject("InternetExplorer.Application")
Sleep (500)
IE.Visible = False
IE.Silent = True
Call DeleteUrlCacheEntry("https://www.lottobook.it/lotto/ambi-frequenti-lotto/")
IE.navigate "https://www.lottobook.it/lotto/ambi-frequenti-lotto/"
Sleep (500)
Do While IE.Busy Or IE.readyState <> 4
DoEvents
Loop
Set HTML = IE.document
With HTML
R = 0
For L = 0 To 20 Step 2
RUOTA = .All.tags("table")(0).Rows(L).Cells(0).innerText
Debug.Print RUOTA
For C = 0 To 5 - 1
AMBO = .All.tags("table")(0).Rows(L).Cells(C + 2).innerText
Debug.Print AMBO
FREQ = .All.tags("table")(0).Rows(L + 1).Cells(C + 1).innerText
Debug.Print FREQ
Next C
R = R + 1
Next L
End With
' Clean up
Set HTML = Nothing
IE.Quit
Set IE = Nothing
End Sub
Dim IE As Object
Dim HTML As Object
Dim MYTABLE As Object
Dim AMBO As String, T As Integer, NUMCELLE As Integer
Dim R As Long, L As Integer, RUOTA As String
Dim C As Long, S As Integer, NUMTAB As Integer
Dim FREQ As String
Set IE = CreateObject("InternetExplorer.Application")
Sleep (500)
IE.Visible = False
IE.Silent = True
Call DeleteUrlCacheEntry("https://www.lottobook.it/lotto/ambi-frequenti-lotto/")
IE.navigate "https://www.lottobook.it/lotto/ambi-frequenti-lotto/"
Sleep (500)
Do While IE.Busy Or IE.readyState <> 4
DoEvents
Loop
Set HTML = IE.document
With HTML
R = 0
For L = 0 To 20 Step 2
RUOTA = .All.tags("table")(0).Rows(L).Cells(0).innerText
Debug.Print RUOTA
For C = 0 To 5 - 1
AMBO = .All.tags("table")(0).Rows(L).Cells(C + 2).innerText
Debug.Print AMBO
FREQ = .All.tags("table")(0).Rows(L + 1).Cells(C + 1).innerText
Debug.Print FREQ
Next C
R = R + 1
Next L
End With
' Clean up
Set HTML = Nothing
IE.Quit
Set IE = Nothing
End Sub