bonjour,
essaie ceci
Sub MajCotations()
Sheets("COTATIONS").Select
Dim i%, k%, URL$, COT, j%, l%
k = Cells(Rows.Count, [REF].Column).End(xlUp).Row
Range(Cells(2, [cotation].Column), Cells(k, [cotation].Column)).Clear
avant = "<div class=""c-ticker__item c-ticker__item--value"">"
apres = "<span class="
On Error Resume Next
For i = 2 To k
DoEvents
ReDim COT(1 To k, 1 To 1)
COT(1, 1) = Cells(i, [cotation].Column).Value
URL = Cells(i, [www].Column).Value
Application.StatusBar = "Mise à jour des cotations en cours …"
On Error Resume Next
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", URL, False
.Send
If .Status = 200 Then COT(i, 1) = Val(Replace((Split(Split(.responsetext, avant)(1), apres)(0)), ",", "."))
End With
Application.StatusBar = False
Cells(i, [cotation].Column).Value = COT(i, 1)
Next
ActiveWorkbook.RefreshAll
Sheets("COTATIONS").Select
End Sub