Sub FiltrerColonneF_80()
FiltreElabore _
NomFeuille:="Feuil1", _
PlageDonnees:="A1:F800", _
NomColonne:="F", _
Critere:=">=0,8"
End Sub
Sub FiltreElabore( _
ByVal NomFeuille As String, _
ByVal PlageDonnees As String, _
ByVal NomColonne As String, _
ByVal Critere As String, _
Optional ByVal PlageCritere As String = "Z1:Z2")
Dim ws As Worksheet
Set ws = Worksheets(NomFeuille)
' ─── 1. Enlever tout filtre existant ───────────────────────────
On Error Resume Next
ws.ShowAllData
On Error GoTo 0
' ─── 2. Créer la zone de critères ──────────────────────────────
Dim c As Range
Set c = ws.Range(PlageCritere)
c.Cells(1, 1).Value = NomColonne ' titre identique à la colonne
c.Cells(2, 1).Value = Critere ' ex : ">=0,8"
' ─── 3. Appliquer le filtre élaboré ────────────────────────────
ws.Range(PlageDonnees).AdvancedFilter _
Action:=xlFilterInPlace, _
CriteriaRange:=c
End Sub