Both AutoCad and MicroStation can now be automated/extended using VBA. This is fabulous. In my current working environment, these programs are used extensively, and a lot of software has been written for it. But unfortunately as well, a lot of programmers have come and went again. So i was left with a program to change, which was locked using a password. A VBA password. I am not quite sure why one would do such a thing, one valid reason would be that some user would accidently get into to the code, and change stuff? No idea. Stop reverse engineering? I could get into a whole discussion about protecting knowledge and sharing knowledge. Anyway, i needed to get in the code, and the person was either unreachable or not willing or forgot the password himself. So i looked for ways to break a VBA password. Apparently there is a very simple way, which took my hours to find. In the *.dvb file, look for the tag "DPB=", and replace that with "DPx=" using a hex editor. Load the project, click through all error-messages, open the properties of the project, and set the password again to something you know and remember, and after that you can remove the password protection all together (if you want). A more detailed description can be found here. This method seems to work for Excel, AutoCAD, let me know if it works for other VBA password protected documents or applications (e.g. Word/Access/... ??).
Thank you so much. We really needed this. I am still hoping that the password can be located, but seeing this work is a great potential fall-back for us. Tom
Thank you very much for this information! I wrote a VBA tool last week and (I AM REALLY STUPID) forgot the password... Now I have my code back! Thanks!!! BTW. a real free HEX editor can be found here: http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
Hi, could you say why you proposal to use HEX editor when it can be used by notepad?
This is a long time ago. But as far as i remember it is a vba-file is binary format, and you want to make sure your ascii editor doesn't mess with any other characters. But if it works for you using notepad, go ahead :) In my case i had to use a hex editor.
Yes, After editing a Excel file with notepad it does not open by clicking on it. OK, with Excel the procedure written on: http://www.schmittis-page.de/index.html?/excel/vba/t48e.htm works well.
Greetings, Thank you very much for this excellent and easy trick. For me it works very well!
Thank you for you excellent guide
Thank you very much!
thank you. i hope that it work.
Thank you very much! It worked perfectly on MicroStation. I just think it's important to remember that the tag “DPB=” appears more than once in the file, and you must find out which is the correct one.
works! saved my life!
Hey guys, can you please help. I tried to do the same instruction but to no avail. I opened the dvb file in notepad and replace DPB with DPx. I load the file in autocad and it said "failed to open the project". I install and tried to open it using the link above on HEX editor but cannot find the DPB file. Thanks.
great great great thank you. I will remember you. thanks a lot.
Hi plz let me know what *.dvb file I must look into ....I found 80 files with .dvb extension....thanks in advance...
great It worked perfectly
Thanks a lot. It worked.
Thank you! It works :) I hope those codes will be opensource, vba codes will help us to improve our CAD skills :)
You must use the Hex Editor don't use Notepad, otherwise it wont work
Hi, I'm sorry, I'm from Russia, that's why my english so bad. Hope, you can understand me. I have file *.dvb & this file was blocked by password. I do not know password and I do not know person who did this file. Any way I need to correct file for working for AutoCad 2015 (now this file work only for AutoCad 2011) Can you help me remove protection? I couldn't to find the tag “DPB="
It's really good. It's successfull in all example. Thanks much.
good job, itworks
The Autocad DVB Password Remover tool can unlock the password from Autocad VBA macro .dvb files. goo.gl/RZWpmF
Thanks a looooot! I had written a vba code of about 2k lines many years ago for AutoCAD R14 (not AutoCAD 2014, but AutoCAD R14 circa 1998). I couldn´t remember the pwd after all this time. Your suggestion worked perfect for me. Thanks again!
AWESOME! Thanks so much - worked like a charm.
You can also take the help of third party AutoCAD DVB password recovery tool to remove password from protected AutoCAD VBA macro .dvb file. You can download the software from here: http://www.vbapasswordrecovery.net/autocad-dvb/
please how to remove password from protected AutoCAD
Very Very Thanks.
I have locked dwg file. Can you explain me how to get dvb file and all other procedure.