Option Private Module
Option Explicit
Sub VeryHideSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
'What sheet will remain visible?
If ws.Name <> "Main Sheet" Then
'Everything else is very hidden, so only
'can become unhidden through VBA
ws.Visible = xlVeryHidden
End If
Next ws
End Sub
Sub UnHidePass()
Dim xUser As String
Dim ws As Worksheet
'What is the password?
Const MyPass = "1234"
'Query the user. Proceed no matter what the user inputs
On Error Resume Next
xUser = InputBox("What is the password?", "Password")
On Error GoTo 0
If xUser <> MyPass Then
MsgBox "Invalid Password"
Exit Sub 'Wrong
End If
For Each ws In ThisWorkbook.Worksheets
ws.Visible = True
Next ws
End Sub