1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Function FiltreActuel(c, Optional typeCol As String)
Application.Volatile
col = c.Column - Sheets(Application.Caller.Parent.Name).Range("_FilterDataBase").Column + 1
feuille = Application.Caller.Parent.Name
If Sheets(feuille).FilterMode Then
If Sheets(feuille).AutoFilter.Filters.Item(col).On Then
temp = ActiveSheet.AutoFilter.Filters.Item(col).Criteria1
If Left(temp, 2) = ">=" Or Left(temp, 2) = "<=" Then
o = Left(temp, 2): n = Mid(temp, 3)
Else
If Left(temp, 1) = "=" Or Left(temp, 1) = ">" Or Left(temp, 1) = "<" Then
o = Left(temp, 1): n = Mid(temp, 2)
Else
n = temp
End If
End If
FiltreActuel = temp
End If
Else
FiltreActuel = ""
End If
End Function |
Partager