Hi,
I found this code on a previous post:
Private Sub Worksheet_Activate()
****pword = InputBox("Please Enter a Password", "Unhide Sheets")
****If pword <> "pword" Then ActiveSheet.Visible = False
End Sub
but when I paste it into the sheet in VBA I get the following error:
Compile Error
Syntax Error
And it highlights this portion of the code:
("Please Enter a Password", "Unhide Sheets")
Sorry for my ignorance, I am not too familiar with VBA, but where does the actual password go in the code? Right now, I do not have a password in the code...is that why I am getting this error?
Any help is much appreciated!!