Option Explicit
Dim Tps As Date
Sub Rafraichir()
[A:A].Clear
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.orange.fr/portail", Destination:=Range("$A$1"))
.Name = "portail"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Application.OnTime Now + TimeValue("00:00:15"), "Rafraichir"
End Sub
Sub StopTempo()
On Error Resume Next
'Stopper la gestion de l'évènement OnTime en cours
Application.OnTime Now + TimeValue("00:00:15"), "Rafraichir", False
End Sub