Bonjour le forium ,
j'ai une macro qui copie d'un onglet a un autre qui fonctionne très bien, le seul problème est que si la valeur existe deja il ne la copie pas je comprend pas pourquoi
ci joint la macro
Sub Ellipse3_Clic()
ActiveWindow.SelectedSheets.PrintOut copies:=2, collate:=True, _
ignoreprintareas:=False
End Sub
Sub recap()
Sheets("etat des courriers").Select
With Sheets("BORDEREAU D’ENVOI")
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 - 14
Cells(num, "C") = .Cells(i, "C")
Cells(num, "J") = .Cells(8, "I")
Cells(num, "k") = .Cells(4, "e")
End If
End If
Next
End With
End Sub