ub GetTabbb()
Sheets("ItaliaA").Activate
' PULISCE FOGLIO
Range("A1").Select
Selection.ClearContents
myURL = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Set ie = CreateObject("InternetExplorer.Application")
'Range("A:C").Clear
With ie
.navigate myURL
Do While .Busy: DoEvents: Loop 'Attesa not busy
Do While .readyState <> 4: DoEvents: Loop 'Attesa documento
End With
'
myStart = Timer 'attesa addizionale
Do
DoEvents
If Timer > myStart + 2 Or Timer < myStart Then Exit Do
Loop
'Cells.Clear
Set mycoll = ie.document.getElementsByTagName("TABLE")
For Each myItm In mycoll
For Each trtr In myItm.Rows
For Each tdtd In trtr.Cells
Cells(i + 1, J + 1) = tdtd.innerText
J = J + 1
Next tdtd
i = i + 1: J = 0
Next trtr
i = i + 1
Next myItm
Sheets("ItaliaA").Activate
' PULISCE FOGLIO
Range("A35").Select
Selection.ClearContents
myURL = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "
Set ie = CreateObject("InternetExplorer.Application")
'Range("A:C").Clear
With ie
.navigate myURL
Do While .Busy: DoEvents: Loop 'Attesa not busy
Do While .readyState <> 4: DoEvents: Loop 'Attesa documento
End With
'
myStart = Timer 'attesa addizionale
Do
DoEvents
If Timer > myStart + 2 Or Timer < myStart Then Exit Do
Loop
'Cells.Clear
Set mycoll = ie.document.getElementsByTagName("TABLE")
For Each myItm In mycoll
For Each trtr In myItm.Rows
For Each tdtd In trtr.Cells
Cells(i + 1, J + 1) = tdtd.innerText
J = J + 1
Next tdtd
i = i + 1: J = 0
Next trtr
i = i + 1
Next myItm
Sheets("ItaliaA").Activate
' PULISCE FOGLIO
Range("A60").Select
Selection.ClearContents
myURL = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "
Set ie = CreateObject("InternetExplorer.Application")
'Range("A:C").Clear
With ie
.navigate myURL
Do While .Busy: DoEvents: Loop 'Attesa not busy
Do While .readyState <> 4: DoEvents: Loop 'Attesa documento
End With
'
myStart = Timer 'attesa addizionale
Do
DoEvents
If Timer > myStart + 2 Or Timer < myStart Then Exit Do
Loop
'Cells.Clear
Set mycoll = ie.document.getElementsByTagName("TABLE")
For Each myItm In mycoll
For Each trtr In myItm.Rows
For Each tdtd In trtr.Cells
Cells(i + 1, J + 1) = tdtd.innerText
J = J + 1
Next tdtd
i = i + 1: J = 0
Next trtr
i = i + 1
Next myItm
Sheets("ItaliaA").Activate
'PULISCE IL FOGLIO
Range("A82").Select
Selection.ClearContents
myURL = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Set ie = CreateObject("InternetExplorer.Application")
'Range("A:C").Clear
With ie
.navigate myURL
Do While .Busy: DoEvents: Loop 'Attesa not busy
Do While .readyState <> 4: DoEvents: Loop 'Attesa documento
End With
'
myStart = Timer 'attesa addizionale
Do
DoEvents
If Timer > myStart + 2 Or Timer < myStart Then Exit Do
Loop
'Cells.Clear
Set mycoll = ie.document.getElementsByTagName("TABLE")
For Each myItm In mycoll
For Each trtr In myItm.Rows
For Each tdtd In trtr.Cells
Cells(i + 1, J + 1) = tdtd.innerText
J = J + 1
Next tdtd
i = i + 1: J = 0
Next trtr
i = i + 1
Next myItm
End Sub |