MsOf10 Password recovery - use someone forgot their password.-VBForums
Results 1 to 3 of 3

Thread: Password recovery - use someone forgot their password.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Godzone, oops Oz
    Posts
    355

    Post 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
    http://www.scaryminds.com - Horror's last colonial outpost.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    20,021

    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

  3. #3
    Fanatic Member dmaruca's Avatar
    Join Date
    May 2006
    Location
    Jacksonville, FL
    Posts
    542

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.