Sub Identification()
Dim name As String
Dim Sheetname As String
Dim matricule As String
Dim Feuille As Variant
Dim derlig, i As Integer
Dim cptr As Byte
matricule = "APR8"
Sheets("Table").Select
derlig = Range("A" & Cells.Rows.Count).End(xlUp).Row
For i = 1 To derlig
If Cells(i, 1).Value = matricule Then
Feuille = Cells(i, 2).Value
End If
Next
If Feuille = "Admin" Then
For cptr = 1 To ThisWorkbook.Sheets.Count
Sheets(cptr).Visible = True
Next
Else
For cptr = 1 To ThisWorkbook.Sheets.Count
If Sheets(cptr).name <> Feuille Then
Sheets(cptr).Visible = 2
End If
Next
End If
End Sub