Bonjour,
Essaye ce code sur le fichier rapport de production tout en ayant ouvert les 2 fichiers.
Sub Reyor()
On Error Resume Next
With Workbooks("OISExport.xls").Sheets("Error")
For i = 47 To 51
Cells(i, 4) = Application.WorksheetFunction.Index(.Range("C:I"), Application.WorksheetFunction.Match(Cells(i, 2), .Range("I:I"), 0), 1) _
& " - " & Application.WorksheetFunction.Index(.Range("C:I"), Application.WorksheetFunction.Match(Cells(i, 2), .Range("I:I"), 0), 2) _
& " - " & Application.WorksheetFunction.Index(.Range("C:I"), Application.WorksheetFunction.Match(Cells(i, 2), .Range("I:I"), 0), 3) _
& " - " & Application.WorksheetFunction.Index(.Range("C:I"), Application.WorksheetFunction.Match(Cells(i, 2), .Range("I:I"), 0), 4)
Next i
End With
On Error GoTo 0
End Sub
Cdlt,
Maxime