-
Feb 16th, 2012, 05:44 PM
#1
Thread Starter
Hyperactive Member
Password recovery - use someone forgot their password.
Anyone know a method of unlocking a protected workbook?
I know there are apps you can download to do this but would like a macro solution for Office 10.
If anyone wants me I'll be behind the bike sheds sorting out someone with a bad memory
-
Feb 18th, 2012, 08:30 PM
#2
Re: Password recovery - use someone forgot their password.
i would not be surprised if password security has been improved in Of2010
i am sure that passwords keep the owner out far more often than an intruder
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Feb 22nd, 2012, 08:26 PM
#3
Fanatic Member
Re: Password recovery - use someone forgot their password.
True, westconn1.
Workbook passwords (to open) encrypt the file contents. I'm sure you could code the macro to brute force the encryption, but you would have to replicate the same things those unlockers did. Removing the password for worksheet protection is much easier. I remember when office still had the script editor you could open it and search for "password" and change the hash to 00000000 and that would remove the password. Today you would probably have to save it as html or xml.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|