You can put a "Password" on anything. What a password really is is a comparison of two strings.
I do this all the time.
I set up the action the user takes, say check the box, to trigger an input box requesting the "Password" This becomes a variable , say stringA. This is compared to a constant in the Code, Say String B. If A matches B they go On to do the task, Else. ACESS DENIED>
'Like this:
Dim TheWord As String
TheWord = "YourPW"
If InputBox("What's the word Dude?", "Password Required") = TheWord Then
MsgBox "yourIn!"
'Your Code Here
Else
MsgBox "Access Denied"
End If
Yours in EXCELent Frustration
KniteMare
In my mind I am already on Vacation. With an option to retire.
This message was edited by KniteMare on 2002-08-29 05:58