'**************************************************************************************
'Filtre des lignes selon Code X
If Not Intersect(Target, Range("F2")) Is Nothing Then
If Range("F2").Value = "Code X" Then Cells.EntireRow.Hidden = False: Exit Sub
For k = 6 To Range("'I65536").End(xlUp).Row
If Not Cells(k, 9).Value = Range("F2").Value Then
Rows(k).EntireRow.Hidden = True
Else
Rows(k).EntireRow.Hidden = False
x = x + 1
End If
Next k
'Filtre des colonnes si B2=LABOS
If Not Range("B2").Value = "LABOS" Then
MsgBox "Veuillez sélectionner LABOS dans la cellules B2", vbExclamation
Else
For j = 11 To Range("IV5").End(xlToLeft).Column
y = 0
For k = 6 To Range("I65536").End(xlUp).Row
If Rows(k).EntireRow.Hidden = False Then
If IsEmpty(Cells(k, j)) = True Or Cells(k, j).Value = 0 Then
y = y + 1
If x = y Then Columns(j).EntireColumn.Hidden = True
Else
If x = y Then Columns(j).EntireColumn.Hidden = False
End If
End If
Next k
Next j
End If
End If
'**************************************************************************************