Password question, please help :)

  • Thread starter Thread starter Alberta Rose
  • Start date Start date
A

Alberta Rose

I have a switchboard with three buttons on it. I would like to password
protect one of the buttons because it is for administrator use only. How do
I do this?

Thanks.
 
Use something like the following in the button's Click event code.

If InputBox("Enter a password") = "YourPasswordHere" Then
'the procedure code for the button goes here
Else
MsgBox "Invalid password. Operation cancelled."
End If
 
Back
Top