Im New to the community, im having difficulty in trying to attach code to a password program that will open folders once the correct password is entered. Any ideas on how to do this???
Take two txt boxes and a command button
And enter the following code:
Private Sub Command1_Click()
'In quotes write your password
if text1.text = "_____" and text2.text = "_____" then
msgbox "Wrong username and or password"
This is the code im working on, but i cant figure out what to put in it to open folders.
The program should be able to a specific folder once the correct password is entered.
Dim Message As String
Dim Correct As String
Private Sub cmdEnter_Click()
Correct = txtpword.Text=txtpword.Tag
If Correct Then
Message = MsgBox("Enter", vbOKOnly + vbInformation, "Access Granted")
Message = MsgBox("Access Denied", vbOKOnly + vbCritical, " Incorrect Password")