Unlock protected VBA Project Excel 2013 - excel

I am attempting to unlock a VBA Project that is password protected and have not had any luck so far. I have tried opening the vbaproject.bin part of the file in a hex editor and replacing the "DPB" line but that has not worked. I have seen this question on other forums but most of the answers provided only seemed to work with the older versions of Excel so I was curious if anyone had had any success in unlocking a VBA project on the newer version of Excel.

I saved my .xlsm as a .xls file. Then I edited the file at http://www.onlinehexeditor.com/, by replacing PDB by PDx by replacing the B=62 hex by x=78 hex.
See more in How do I remove the password from a VBA project?
Finally, I saved as .xlsm again and it worked out for me.

Related

How to get VBA code out of an old xls file

I have a problem with opening an old excel file with VBA macros. It looks like some of the VBa libraries are no longer used in excel 365.
While opening I get an error:
Opening the VBA project in this file requires a component that is not currently installed. This file will be opened without the VBA project. Fro more information, search Office.com for "VBA converters"
I struggle to install those libraries on my PC, but in the meantime I wonder if there is any workaround to get the VBA code out of this file.
Thanks in advance!
EDIT:
I attached mentioned file.
https://docs.google.com/spreadsheets/d/1msKl4kZANwwOTcqkDDb6pUjaaYkZ57lS/edit?usp=sharing&ouid=105093812803215551016&rtpof=true&sd=true
You can solve your problem when install office2003 and save it to microsoft office excel workbook(*.xls)
Link for office 2003
Your file after convert
Thanks for Mr.Yasserkhalil

How to recover Excel VBA Module from a closed Excel file

I have an Excel Office 365 file that immediately crashes upon opening.
The file contains VBA modules that do not have a backup. I would like to extract the VBA modules without opening the file.
Is there a way to read the contents of the VBA modules and save them for reuse in a new file?
Kudos to Bigben , i opened excel in safe mode and was able to recover my code modules.
Although it does not answer the question i originally posed ie: is there a way to read the modules without opening the file", it achieves the same intent. Thank you BigBen

Unlock VBA in Excel 365

Is there a way to unlock password protected VBA in Excel 365?
I am aware of previous solutions like those discussed here.
Unfortunately, none of those work anymore in Excel 365 (tested on Mac and Win 64 bit)
Converting to XLS and using the Hex editor approach ends up in errors when I try to open a script. The module tree is visible, but no editors can be opened.
Changing to Zip and working the vbaProject.bin results in a file that crashes on load.
The script approach in a second file pretends to work, but Excel crashes when I try to access the VBA.

VBA Module disappears after saving Excel workbook

I was just introduced to VBA. However, on saving my first excel file with VBA code, with .xlsm extension (I was advised to do so), and then reopening that saved file, I realized that all the VBA code had disappeared and the cells in which I had used the user-defined functions threw errors. Saving the workbook as .xlsx instead of .xlsm also didn't help. When I tried saving the VBA module, it showed that FUNCRES.XLAM is read-only and hence cannot be modified, and so try saving it at a different location. Doing so, saved an excel file which on opening showed a pop-up message that it's corrupt so can't be opened. Then I gave all permissions to FUNCRES.XLAM and it is NOT read-only. But the problem still prevailed. What should I do? Can someone please help me?
PS: It is Windows 10, Office 2016.
Your VBA code needs to be saved in a module within the same workbook in which you are working. This will probably be listed as VBAProject(Book1)
There will likely be other projects listed in the Project Explorer window of the VBA GUI, but your code will not get saved with those modules.
These are related to add-ins, and not to your workbook.

XLA file not saving in Excel 2010

I'm using Excel 2010 and I have a .xla file with VBA macros, I edit the macros with the VBA editor, then save it. Later when I reopen the .xla file my changes are lost. On the internet I found other people with the same problem, e.g. MS-Excel VBA file (XLA) saving problem, but not solution.
please try to save it in the VBA-Editor. This ist what I have to do with xlam-files.

Resources