Sub Remplir()
Dim C As Range, Sh As Worksheet, Txt As String, Ligne As Variant
Set Sh = Workbooks("FichierExporte.xlsx").Sheets("Sheet1")
With Sheets("Legacy Pipe")
For Each C In .Range("A2", .Cells(.Rows.Count, 1).End(xlUp))
Txt = Application.Substitute(C.Value, "KSM_", "")
Ligne = Application.Match(Txt * 1, Sh.[A:A], 0)
If IsNumeric(Ligne) Then
C.Offset(, 1) = Sh.Cells(Ligne, 4)
C.Offset(, 2) = Sh.Cells(Ligne, 2)
C.Offset(, 3) = Sh.Cells(Ligne, 3)
C.Offset(, 5) = Sh.Cells(Ligne, 5)
End If
Next C
End With
End Sub