Sub explorer()
Dim IE As New InternetExplorer
Dim IEDoc As HTMLDocument
Dim depart As HTMLInputElement
Dim arrivee As HTMLInputElement
IE.navigate "https://fr.mappy.com/#/1/M2/TItineraryHome/N151.12061,6.11309,2.36122,46.73638/Z5/"
IE.Visible = True
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
Set IEDoc = IE.Document
Set depart = IEDoc.all("from")
Set arrivee = IEDoc.all("to")
depart.Value = Range("c2")
arrivee.Value = Range("d2")
MsgBox (IEDoc.all("from").Value)
End Sub