Sub GetTabbbSub(ByVal myURL As String)
'need to receive the target Url
'
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate myURL
.Visible = True
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 + 1 Or Timer < myStart Then Exit Do
Loop
'Write tables on the ActiveSheet
Set myColl = IE.document.getElementsByTagName("TABLE")
For Each myItm In myColl
Cells(I + 1, 1) = "Table# " & ti + 1
ti = ti + 1: I = I + 1
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
DoEvents
Next trtr
I = I + 1
Next myItm
'
''Stop 'SEE TEXT
'Chiusura IE
IE.Quit
Set IE = Nothing
End Sub
Sub call1()
Sheets("Foglio1").Select '<<< Which sheet will be used for the tables
Cells.ClearContents '<<< Clear the sheet before read new tables?
Call GetTabbbSub("http://www.sisal.it/virtual-race/archivio-gare") '<<< URL to be read
Cells.WrapText = False 'Suggested
'Other web pages (on other worksheet)??
'
'
End Sub
Student NameXXX, XXXXDomicileXXXXXCorrespondence AddressXXXXXX XXXXCustomer Reference NumberXXXXXXXXXXXSSNXXXXXXXXXXXXXBank Details SuppliedYesCityXXXXXXXXXFailed PaymentNoCountyPostcodeXXXX XXXXDate of Birth00/00/0000Sex
XXXXXX Home Tel No00000000000Email AddressXXXX@XXXXX.XX.XXMobile Tel No0000000000000