Bonjour
Une autre manière de faire (sur la base de la macro de gestionnaire_rh)
A vérifier sur de grands fichiers
Option Explicit
Sub Macro1()
Dim Derli As Long
Dim I As Long
Application.ScreenUpdating = False
Derli = Range("A" & Rows.Count).End(xlUp).Row
Columns("D").Insert
With Range("D1:D" & Derli)
.FormulaLocal = "=SI(NB.SI($A$1:$A$" & Derli & ";A1)>1;1;"""")"
.Value = .Value
End With
Range("A1:D" & Derli).Sort Key1:=Range("D1"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
On Error Resume Next
Range("D1:D" & Derli).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Columns("D").Delete
End Sub