Comments on: How to protect and unprotect Excel sheet with or without password

The tutorial shows the detailed steps to protect Excel sheet with or without passwords. It also explains how to unlock Excel spreadsheet without password if you forgot or misplaced it. Continue reading

Comments page 4. Total comments: 391

  1. Thank you so much, dear. Highly appreciated.

  2. Worked perfectly.

  3. Followed everything as described. But at final run getting Compile error > For without Next
    And marking the End Sub in blue color.
    Can you please solve the issue?

  4. How to unlock/unprotect excel file with password? Please help

  5. How do you unlock an excel file that was password protected to open? If it's possible.

  6. Hi, its working

  7. Many methods are suggested and it worked perfectly for me. Much appreciated. Thank You.

  8. amazing! you are a wizard.

  9. Thanks a lot! You are a "Genius".
    Saved me lots of time.

  10. Oh my Goodness! I was working in a very old multi-page spreadsheet we have used for years and years. I have no idea who even created it. I ran into trouble on a certain cell which apparently was "protected" and password protected. Of course, I had no idea what the password was since it was so old. I messed around trying to figure out how to get around the password. This worked like a charm and you saved me a lot of time and frustration. Thank you very much!!!!

  11. Works like a charm! This has saved a lot of time.
    Thank you very much.
    If you are having difficulty with this--make sure you click at the end of the text in the module before pressing F5.

  12. Thanks, the informations helps me

  13. works for me !
    Thanks a bunch

  14. Thank you very much.Very helpful.

  15. It took me a few tries, but it worked. I was surprised that it worked ... but it did!

  16. Works perfectly! The tip on unlocking sheets in 2013 and 2016 excel works as well, just make sure you save to an .xls file, and ALSO close out of excel and reopen the file before trying it. This opens the file in compatibility mode. Took me 20 minutes to figure out why it wasn't working.

  17. This is the coolest VBA code. Works perfectly. For those of you having problems, make sure you are right-clicking on the sheet to add the module, not the workbook. Thank you so much for posting!! What a time saver.

  18. Hi Thanks a lot
    you really made my day smartie.....

  19. Thank you so much!!! This was an incredible help.

  20. Hello,
    I would like ot thank you for the script to break up the PSW. Great job. really great work!

    Thank you!

  21. it worked!

  22. I have to agree with Kurt. I've been trying for hours to "Remove" a password from a WORKBOOK

  23. Me thinks Pepe Mano is rude and Stupid

  24. I've been using the cracker for years, working perfect. now my problem is I have new computer with office 265 and when I try to use it excel goes to "not responding" I have to go to task manager and end task to restart excel. Can anybody help me?

  25. Amazing...!
    I like excel and I appreciate...

  26. guys please help i have locked the workbook and then forgot the password how can i crack that

  27. There is a more simple way . You can simply upload the protected excel sheet to your google drive. Then open it using google spread sheet. Then u will be able to edit any cells from your google spread sheet. If you want to save it in your computer,just copy and paste it to a new sheet in MS excel.

    1. Brilliant! my prob solved in 2 mins - ive been trying to crack the pwd for months but never thought of this! I adore you!

    2. OMG this saved the day!! The VBA method worked last year and earlier this year but does not anymore, at least for the spreadsheets we have. THANK YOU KANAN

      1. Yes, Google Sheets works!!!!
        Thanks!

  28. Hi,
    awesome tip, worked perfectly, thanks for sharing!!
    But it won't let me save it, have to enter the password to save.
    thanks heaps

  29. ALERT!!! DO NOT WASTE YOUR TIME ON THIS CRAP!!!!
    THIS MACRO AS POSTED ABOVE DOES NOT NOT NOT NOT NOT NOT NOT NOT WORK
    THIS ARTICLE SHOULD BE REMOVED FROM THE INTERNET
    CRAP WASTE OF TIME!!!!!!

    Sub PasswordBreaker()
    'Breaks worksheet password protection.

    Dim i As Integer, j As Integer, k As Integer
    Dim l As Integer, m As Integer, n As Integer
    Dim i1 As Integer, i2 As Integer, i3 As Integer
    Dim i4 As Integer, i5 As Integer, i6 As Integer

    On Error Resume Next

    For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
    For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
    For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
    For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126

    ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
    Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
    Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)

    If ActiveSheet.ProtectContents = False Then
    MsgBox "Password is " & Chr(i) & Chr(j) & _
    Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
    Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)

    Exit Sub

    End If

    Next: Next: Next: Next: Next: Next
    Next: Next: Next: Next: Next: Next
    End Sub

    1. I just used this method for the 1st time today and it worked like a charm.
      Your just not doing it right!!

  30. wait a couple of minutes (password crecker) mind you, a couple actually mean two. Been waiting for 15 minutes, still counting... Anybody experienced this??

  31. Hi all,
    I have the below macro code, that is intended to place the date and hour on the next columns after the column "X" is filled. The issue I need the support is that, the cells to place the date and time are protected, and when running the macro it crashes because it cannot edit the addressed Cells. So i need a way in which eider the cells are unlocked to allow the data to be updated and then locked or that the macro should be able to place the data even if the cells are locked.

    Any hints?

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 5 And Target.Row > 2 Then
    Cells(Target.Row, Target.Column + 2).Value = Date
    Cells(Target.Row, Target.Column + 3).Value = Now
    End If
    If Target.Column = 9 And Target.Row > 2 Then
    Cells(Target.Row, Target.Column + 2).Value = Date
    Cells(Target.Row, Target.Column + 3).Value = Now
    End If
    End Sub

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    End Sub

    1. Delete the columns and add them back.

  32. Works amazingly

  33. I keep trying the module procedure on VBA Project but I keep coming up with Compile Error: Invalid Outside Procedure. What am I doing wrong? Any tips?

  34. Awesome, Thank you its worked very well

  35. This is awesome! Thanks it worked like a charm!

  36. 100% Workable.
    Many Many Thanks for your nice & Simple presentation
    to solve the problem.

  37. Works perfectly fine!!! Thanks man!

  38. Thanks,Excellent details,very help full.

  39. how to prtect excel file to unprotect.plese send me process?

  40. Works fine, thanks.

  41. it works than you

  42. Excellent script! Thanks so much for publishing this!

  43. Hi,

    I need a macro to open a separate sheet from protected excel and disable all the formulas

  44. if it's not working on XlSX files - try to save the file first as macro-enabled file - XLSM - then try this hack it works perfectly - have a good day

  45. When I run the code, I get no response from Excel or the VBA editor and have to force close it. I waited as long as an hour to try and see if it would work.

  46. LIFESAVER! THANK YOU! Fixed my problem in 3 minutes.

  47. Thank You

    You are really Great

  48. Extremely useful info, managed to unlock very important docs so that our team could introduce needed changes

  49. Super, its works 100% :-)

  50. Hi,
    I protected a Sheet. I used a Password. We need to unlock and relock to add information. When I went back in to 'unprotect' its greyed out and I cant select unprotect. Now it seems its locked up. There is no option in the 'Info or Right click the sheet, nor on the review tool bar' any ideas to ungrey so we can lock and unlock everyday?

    FYI
    This is a shared workbook. Others will be updating the other tabs.

    thanks

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)