Tramite questa macro seguente, riesco a importare dati dal sito in oggetto, senza formattazione. Poichè in colonna B vanno a finire dati che sul sito sono colegamenti ipertestuali come posso trasformare questa macro affinchè possa importare dati con formattazione completa? In questo modo ritroverei in colonna B i collegamenti ipertestuali. Grazie
Sub Macro1()
Application.Calculation = xlCalculationManual
myURL = "http://stats.betradar.com/s4/?clientid=5&language=it#2_1,3_17,22_1,5_41264,9_fixtures,231_full,23_1"
Set ie = CreateObject("InternetExplorer.Application")
With ie
.navigate myURL
.Visible = True
Do While .Busy: DoEvents: Loop
Do While .readyState <> 4: DoEvents: Loop
End With
'
myStart = Timer
Do
DoEvents
If Timer > myStart + 2 Or Timer < myStart Then Exit Do
Loop
I = 1
Worksheets("Foglio1").Activate
Range("A:G").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
ie.Quit
Set ie = Nothing
Calculate
End Sub