VBA how to crack Excel Password

Posted hhh5460

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VBA how to crack Excel Password相关的知识,希望对你有一定的参考价值。

来源
更多vba相关
vba教程
VBA cheat sheet

1. VBA how to crack Excel Workbook/Worksheet password

To remove the excel workbook or worksheet password requires opening the excel file as xml file and removing the password tags in the xml.

Unlock Password protected sheets/workbook
1) Open excel file as zip in 7 Zip – open as archive
2) Download Sheet.xml or workbook.xml
3) Open xml file in text editor
4) Delete the entire tag that begins with <sheetProtection password…./> or <workbookProtection…./>
5) Transfer xml file back to 7 Zip archive folder
6) Sheets or workbook should now be unlocked

2. How to crack VBA password

To remove the password locking the VBA of an excel file requires opening the excel in 7zip and editing one of the .bin files to recode the part that designates whether the file is password protected of not. This has to be done in a hex editor.

Unlock VBA excel
1) 7 zip open xlsm file as archive
2) Navigate xl folder
3) Download vbaProject.bin file
4) Open vbaProject.bin file in text editor to view hex code
5) Find the hex code for DPB (use text to hex converter, DPB hex = 5042)
6) Update hex code 5042 (DPB) to 5078 (DPx)
DPB = password protected vba
DPx = No password on VBA
7) Save new vbaProject.bin file
8) Copy new vbaProject.bin file back to 7 zip xl folder
9) Open excel file – will show DPx error message, click okay
10) Go to VBA editor – Tools – VBA project properties – Protection – Disable lock project for viewing
11) Save file
12) Re open file – should now be unlocked
























以上是关于VBA how to crack Excel Password的主要内容,如果未能解决你的问题,请参考以下文章

Excel VBA Chart.Export

Excel VBA Chart.Export

How to install Matlab2016b on Ubuntu 16.04 LTS

Cracking the Code: How Kids Can Write Their Own Video Game

Excel VBA Convert Text String to Number

Excel VBA Convert Text String to Number