Cracking excel VBA password

To remove VBA password in Excel document use following steps. The steps are really simple and you can remove the password in no time.Backup the xls file first!

  1. Using a HEX editor, locate the DPB=… part
  2. Change the DPB=… string to DPx=…
  3. Open the xls file in Excel
  4. Excel discovers an invalid key (DPx) and asks whether you want to continue loading the project (basically ignoring the protection)
  5. Open the VBA editor (ALT+F11)
  6. Overwrite the password, so change it to something you can remember
  7. Save the xls file
  8. Close and reopen the document and work your VBA magic!

Solution was found at: http://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project

If you want to remove password from protected sheet then see https://nirmaljoshi.wordpress.com/2011/05/25/breaking-excel-passoword/.

Advertisement
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.