Hi
Current code;
However, this line isn't working;
But works with only;
Can't seem to figure it out. Any help would be fantastic! Thanks in advance
Current code;
Code:
Private Sub Workbook_Open()
Dim sh As Worksheet
For Each sh In Worksheets
sh.Visible = True
Next
Dim sht As Worksheet
If Application.UserName = "Name 1", "Name 2", "Name 3" Then Exit Sub
For Each sht In ThisWorkbook.Sheets
If sht.Name <> "Thresholds" Then
sht.Visible = xlSheetVeryHidden
End If
Next
Sheets(Environ("UserName")).Visible = True
End Sub
However, this line isn't working;
Code:
If Application.UserName = "Name 1", "Name 2", "Name 3" Then Exit Sub
But works with only;
Code:
If Application.UserName = "Name 1" Then Exit Sub
Can't seem to figure it out. Any help would be fantastic! Thanks in advance