Bonjour
Testes ces macros
Sub masquer()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
If sht.Name <> "Feuil1" Then
sht.Select
Range("B2").AutoFilter Field:=1, Criteria1:="<>0"
End If
Next sht
End Sub
Sub trier()
'
' trier Macro
'
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
If sht.Name <> "Feuil1" Then
sht.Select
Range("B3:B20").Select
sht.Sort.SortFields.Clear
sht.Sort.SortFields.Add Key:=Range("B2"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortTextAsNumbers
With sht.Sort
.SetRange Range("B3:C20")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("C18").Select
End If
Next sht
End Sub
Autant pour le tri j'arrive à comprendre mais pour le filtre je ne saisis pas