Remove MS Excel VBA password

本文提供了一种在不破坏文件的情况下,解除Microsoft Excel中VBA宏密码保护的方法。通过使用十六进制编辑器修改特定的文件段,可以轻松地将密码更改为1或直接删除,使用户能够重新获得对受保护VBA宏的完全访问权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I often work with MS Excel template for different report requirement. Most of the MS Excel template includes VBA procedure, but most of them are protected with password. Below step is to remove the VBA protect passord in MS Excel.

1. Create a new MS Excel document and set the VBA protect password as "1";

2. Open this document from UE/any hex editor. And search "43 4D 47" - CMG. like below

CMG="7270DE6E5472547254725472"
DPB="E4E648E0C853C953C953"
GC="5654FA721E96919791976E"

3. Close this document, and open the target VBA protect document in UE/any hex editor.

4. Replace the same section with above values.

5. Save this document. And reopen it with MS Excel.

6. The VBA password will be changed to your new password "1", or even it will not ask for password.

 

Or

Open the target document and change the DPB = DPm and save the document.

After that, reopen this document in MS Excel, it will show key issue, ignore it and open this document and reset the password.

转载于:https://www.cnblogs.com/EllieSoft/archive/2012/02/09/2344372.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值