Claudy
XLDnaute Accro
Bonjour et bonne année à tous...
pouvez vous me dire pourquoi la macro Lotto ne fonctionne pas , alors que lotto2 fonctionne bien?
Sub lotto()
destinationURL = "http://www.lotto.be/pages/show.aspx?Culture=fr&pageid=results/latest/lotto&cache=33919f2a"
ActiveSheet.Cells.Delete Shift:=xlUp
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
Sub lotto2()
destinationURL = "URL;http://www.euromillions.be/show.aspx?culture=fr&pageid=results/latests"
ActiveSheet.Cells.Delete Shift:=xlUp
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
Serait ce du à une éventuelle protection sur le site?
Merci d'avance,
Claudy
pouvez vous me dire pourquoi la macro Lotto ne fonctionne pas , alors que lotto2 fonctionne bien?
Sub lotto()
destinationURL = "http://www.lotto.be/pages/show.aspx?Culture=fr&pageid=results/latest/lotto&cache=33919f2a"
ActiveSheet.Cells.Delete Shift:=xlUp
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
Sub lotto2()
destinationURL = "URL;http://www.euromillions.be/show.aspx?culture=fr&pageid=results/latests"
ActiveSheet.Cells.Delete Shift:=xlUp
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub
Serait ce du à une éventuelle protection sur le site?
Merci d'avance,
Claudy