Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50099

Is it possible to bypass the pw to modify all wb

$
0
0
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:

Code:

Dim pw As String
    pw = "tt3"
    If TextBox1 <> "tt3" Then
    MsgBox "Please Re-Enter password"
    TextBox1.Value = ""
    Me.TextBox1.SetFocus
    Exit Sub

Regards,
tt3


http://www.excelforum.com/excel-prog...me-folder.html

Viewing all articles
Browse latest Browse all 50099

Trending Articles