Sub recap()
Sheets(1).Select
With Sheets(2)
For i = 1 To .Cells(Rows.Count, "B").End(xlUp).Row
If .Cells(i, "B") = "Sinistre" Then
Set cel = Columns("C").Find(.Cells(i, "C"))
If cel Is Nothing Then
num = Cells(Rows.Count, "A").End(xlUp).Row + 1
Cells(num, "A") = num - 13
Cells(num, "C") = .Cells(i, "C")
Cells(num, "N") = .Cells(7, "I")
Else
MsgBox "Référence """ & .Cells(i, "C") & """ non copiée, celle-ci existe déjà !"
End If
End If
Next
End With
End Sub