Thanks!
1. Create a validation list of employees using Data->Valication...
Under "Allow" select "List" and select the range of your employee names
2. Paste the following macro into VBA
This macro will hide the worksheet with the same name as what you have
selected in your validation drop-down list if it is visible and will unhide
it if it is not visible.
If your validation set is in "A1":
Sub HideUnhide()
Dim employee as Range
Set employee = Range("A1")
If Sheets(employee.value).Visible = True Then
Sheets(employee.Value).Visible = False
Else: Sheets(employee.Value).Visible = True
End If
End Sub
3. Assign this macro to a button or shortcut for easy use.
The macro is untested, but should work. Good luck!
--
-SA
Private Sub Worksheet_Change(ByVal Target As Range)
Set Target = Range("B8")
If Sheets(Target.Value).Visible = True Then
Sheets(Target.Value).Visible = False
Else: Sheets(Target.Value).Visible = True
End If
End Sub
--
-SA