Dim plage as Range
Set Ws = Sheets("Ecritures analytiques")
With Ws
DernLigne = .Range("A" & Rows.Count).End(xlUp).Row
Set plage = .Range("A1:AB" & DernLigne)
Exercice = InputBox("Quel exercice voulez vous purger ?")
plage.AutoFilter 14, Exercice, xlAnd
plage.AutoFilter 28, "Réalisé", xlAnd
.Range("A2:AB" & DernLigne).SpecialCells(xlCellTypeVisible).EntireRow.Delete
End With
ThisWorkbook.RefreshAll