Bonjour
Les erreurs semblent venir de ce type de ligne. tu as cells(0,1) ...... la ligne 0 n'existant pas
J'ai remplacé le 0 par i-5 pour arriver à la ligne 3 de BD..
Est ce cela qui coinçait ?
Do While Range("i1").Value = "trouver"
If (sheet_IMPORT_MAG.Cells(i, 2) = p) Then
If Sheets("IMPORT MAG").Cells(i, 2) = p And Sheets("IMPORT MAG").Cells(i, 3) = Sheets("BD").Cells(i - 5, 1) Then
p = p + 1
End If
If ((Sheets("IMPORT MAG").Cells(i, 2) = p) And (Sheets("IMPORT MAG").Cells(i, 3) <> Sheets("BD").Cells(i - 5, 1))) Then
Sheets("IMPORT MAG").Select
Selection.Offset(0, 0).Select
Cordialement
FINDRH