其他技巧 - graybull's Blog

Crack the password on an Excel VBA project/破解Excel VBA密码

 

I worked with Excel 2003 using the method below. If you need to work with Excel 2007,
you could transform .xlsx file into .xls file first, then have a try to follow the method.
 
  1. Create a new simple excel file.
  2. In the VBA part, set a simple password (say - 1234).
  3. Save the file and exit. 
  4. Open the file you just created with a hex editor. (I use HxD Hex Editor, just google and download it)
  5. Copy the lines starting with the following keys:

    CMG=....    
    DPB=...    
    GC=...
    
  6. FIRST BACKUP the excel file you don't know the VBA password for, then open it with your hex editor, and paste the above copied lines from the dummy file.

  7. save the excel file and exit.
  8. Now, open the excel file you need to see the VBA code in. The password for the VBA code will simply be 1234 (as in the example I'm showing here).
 

 




Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee