Hi,
I am prompting users to enter a password when they click a button that runs a macro hiding and formatting cells.
Dim Password As String
Password = InputBox("Please enter password below", "Password", "????")
If Password <> "2154" Then
MsgBox "Incorrect Password"
Exit Sub
Else
End If
They need to enter the password every time they hit the button. Does anyone know how to store the password so that they only need to enter once while the sheet is open.
Thanks in advance for your help.
Nick
I am prompting users to enter a password when they click a button that runs a macro hiding and formatting cells.
Dim Password As String
Password = InputBox("Please enter password below", "Password", "????")
If Password <> "2154" Then
MsgBox "Incorrect Password"
Exit Sub
Else
End If
They need to enter the password every time they hit the button. Does anyone know how to store the password so that they only need to enter once while the sheet is open.
Thanks in advance for your help.
Nick