Password Cracker of Protected Sheet in Excel 2013 and Later using VBA

后端 未结 4 1272
孤独总比滥情好
孤独总比滥情好 2021-01-02 19:45

Anybody knows if there are other ways to crack a password of a protected sheet in excel? I have been using these codes ever since but now, it doesn\'t seem to work anymore.

4条回答
  •  长发绾君心
    2021-01-02 20:25

    Since a recent update, Excel has an issue with a high try rate to command Unprotect. A few slow-down makes the code run again: Put something like this right before the Unprotect line, i.e. into the most inner loop:

    Debug.Print Chr(i) & Chr(j) & Chr(k) _
          & Chr(l) & Chr(m) & Chr(i1) _
          & Chr(i2) & Chr(i3) & Chr(i4) _
          & Chr(i5) & Chr(i6) & Chr(n)
    DoEvents
    

    With this (speed-) modification, the initial mentioned approach works also with Excel 2013 and Excel 2016.

提交回复
热议问题