Password question, please help :)

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.
 
B

Beetle

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top