Hello All,
I would like to modify some data in each WB. Each time the WB open, it will be prompt the pwuserform to let user enter the password. Is it possible to bypass the pw by enter pw in vba code?
pwUserForm
TextBox1 (to enter pw here)
Enter (CommandButton1)
Exit (CommandButton2)
This is a code in wb open:
Regards,
tt3
http://www.excelforum.com/excel-prog...me-folder.html
I would like to modify some data in each WB. Each time the WB open, it will be prompt the pwuserform to let user enter the password. Is it possible to bypass the pw by enter pw in vba code?
pwUserForm
TextBox1 (to enter pw here)
Enter (CommandButton1)
Exit (CommandButton2)
This is a code in wb open:
Code:
Dim pw As String
pw = "tt3"
If TextBox1 <> "tt3" Then
MsgBox "Please Re-Enter password"
TextBox1.Value = ""
Me.TextBox1.SetFocus
Exit Sub
tt3
http://www.excelforum.com/excel-prog...me-folder.html