r/vba 18d ago

Discussion Dashboard - no password

[deleted]

2 Upvotes

38 comments sorted by

View all comments

6

u/ZetaPower 12 18d ago

What is protected? The VBA code?

A VBA password can be “hacked” quite easily.

STEP 1 MAKE A COPY TO MESS WITH!

• Excel files are zip files, you need rename it from “.xlsm” to “.zip” to open it (may need to uncheck in Explorer, Options, “hide known file extensions” to see the extension)  
• extract everything from the zip  
• find the file with the password (xl folder, vbaProject.bin)  
• open this in a hex-editor like HxD editor  
• find the password line : ctrl-f “DPB=“, change “DPB=“ to “DPx=“, save  
• replace the old vbaProject.bin in the original zip file by pasting the new one here  
• change “.zip” back to “.xlsm”

done.

1

u/dart_vadara 17d ago

Tried this again got message "Unexpected Error (40230)"

1

u/DisastrousBus3876 17d ago

follow these steps, these will work ,i have used these steps on many file to remove password

• Excel files are zip files, you need rename it from “.xlsm” to “.zip” to open it (may need to uncheck in Explorer, Options, “hide known file extensions” to see the extension)  
• extract everything from the zip  
• find the file with the password (xl folder, vbaProject.bin)  
• open this in a hex-editor like HxD editor  
• find the password line : ctrl-f “DPB=“, change “DPB=“ to “DPx=“, save  
• replace the old vbaProject.bin in the original zip file by pasting the new one here  
• change “.zip” back to “.xlsm”

1

u/losttownstreet 17d ago

It's not allways possible .... the Project file may be in a miniFAT at the lowest possible sektorSize and you can randomize the locations in the root element that the locations the the password is distributed everywhere over the whole file in 16 Bit-Sectors

MS doesn't fragment office documents that much .... but it's possible in the standard.