Re-bonjour,
J'ai appliqué la macro sur mon grand fichier, il me met débogage et "End if" qui à la fin en jaune.
Private Sub CommandButton1_Click()
derligne = Cells(Rows.Count, 1).End(xlUp).Row
derligne2 = Sheets("_Synthese_RA_PSAutres").Cells(Rows.Count, 1).End(xlUp).Row
For i = 9 To derligne
For Z = 3 To derligne2
If Cells(i, 1) = Sheets("_Synthese_RA_PSAutres").Cells(Z, 1) Then
Cells(i, 28) = Sheets("_Synthese_RA_PSAutres").Cells(Z, 34)
Cells(i, 30) = Sheets("_Synthese_RA_PSAutres").Cells(Z, 39)
Cells(i, 34) = Sheets("_Synthese_RA_PSAutres").Cells(Z, 22)
Z = derligne2
Else
Cells(i, 9) = "Valeur non trouvée"
End If
Next Z
Next i
End Sub