Start by hiding ALL sheets except 1. Best to use xlveryhidden.
Press ALT F11 to open VBA window
You'll find all the sheets listed in the top left, click view - properties window
select each sheet 1 by one and set the visible property to xlveryhidden.
The sheet you leave UNhidden should be named "login" or something, whatever...
close the VBA window.
Now right click the Excel Icon in top left corner next to "file - edit - etc" - click view code.
Paste the following.
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("login").Visible = True
For Each Sheet In Sheets
If Sheet.Name <> "login" Then Sheet.Visible = xlVeryHidden
Next Sheet
End Sub
Private Sub Workbook_Open()
Sheets("login").Visible = True
For Each Sheet In Sheets
If Sheet.Name = Environ("username") And Sheet.Name <> "login" Then
Sheet.Visible = True
Else
Sheet.Visible = xlVeryHidden
End If
Next Sheet
If Environ("username") = "Master ID" Then ' Your Network Login ID goes here
For Each Sheet In Sheets
Sheet.Visible = True
Next Sheet
End If
Sheets("login").Visible = xlVeryHidden
End Sub
Change the "Master ID" to whatever YOUR network logon ID is.
This depends on the employee sheet names being the same as their network logon ID's