Bonjour toutes et tous
merci à Gmb:
https://forum.excel-pratique.com/viewtopic.php?t=67976
@ tester
remplacer ShowAllData
par
If FilterMode = True Then ActiveSheet.ShowAllData
Sub supplign()
Sheets("Saisie LIMS").Unprotect ("1234")
Dim pl As Range
With Sheets("Saisie LIMS")
.Range("$A$9:$A$509").AutoFilter Field:=1, Criteria1:=Array("R6", "R7", "T11"), Operator:=xlFilterValues
Set pl = .[A2].Resize(.Cells(Rows.Count, 1).End(xlUp).Row).EntireRow
On Error GoTo fin
Set pl = pl.SpecialCells(xlCellTypeVisible)
If Not pl Is Nothing Then pl.EntireRow.Delete
fin:
If FilterMode = True Then ActiveSheet.ShowAllData
End With
Sheets("Saisie LIMS").Protect ("1234")
End Sub
Edit: il doit y avoir une autre erreur quelque part
crdlt,
André