Bonjour LoicL, le forum
As-tu essayé la méthode SpecialCells
Sub Supprime()
Application.ScreenUpdating = False
Columns(1).Insert
With Range("b2", Range("b" & Rows.Count).End(xlUp)).Offset(, -1)
.Formula = "=if(e2=2,1,"""")"
.Value = .Value
On Error Resume Next
.SpecialCells(2, 1).EntireRow.Delete
On Error GoTo 0
End With
Columns(1).Delete
Application.ScreenUpdating = True
End Sub
Pour tester, place cette instruction
.SpecialCells(2, 1).EntireRow.select
à la place de :
.SpecialCells(2, 1).EntireRow.Delete
klin89