Sub test()
Application.ScreenUpdating = False
Dim WsS As Worksheet, WsC As Worksheet
Dim Cel As Range, C As Range
Dim LigneAjout As Long
Application.ScreenUpdating = False
Set WsS = Worksheets("Feuil1") ' a adapter au nom de l'onglet
Set WsC = Worksheets("Archivage ") ' a adapter au nom de l'onglet
For Each Cel In WsS.Range("A7:A" & WsS.Range("A" & Rows.Count).End(xlUp).Row)
Set C = WsC.Columns(1).Find(Cel, , xlValues, xlWhole)
LigneAjout = WsC.Range("A" & Rows.Count).End(xlUp).Row + 1
If Not C Is Nothing Then
' Cel.Resize(, 16).Copy
' WsC.Range("A" & C.Row).PasteSpecial (xlPasteValues)
' Else
Cel.Resize(, 16).Copy
WsC.Range("A" & LigneAjout).PasteSpecial (xlPasteValues)
LigneAjout = LigneAjout + 1
End If
Next Cel
Application.CutCopyMode = False
Set C = Nothing: Set WsS = Nothing: Set WsC = Nothing
Application.ScreenUpdating = True
End Sub
avec cette correction cela convient il mieux ,
j'ai désactiver la condition de contrôlé d'exitance supprime les guillemet si toute fois tu devais en avoir besoin 😊