I have a worksheet with several tabs on which i am trying to protect each individual tab. The problem i am having is that when i use the VBA code it prompts me for the password but at the same time gives visibility to the sheet before any password has been entered.
What im trying to do is to change the password prompt box to cover the screen large enough that it blocks visibility of the sheet that i would like to access, but im unsure how to do this.
Here is the code im using,
Private Sub Worksheet_Activate()
a = InputBox("Please Enter Password")
If a <> "Password" Then
MsgBox "Wrong Password"
Sheets("Sheet1").Visible = False
End If
End Sub
Any help is appreciated
Bookmarks