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.
Related
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
I got a recent problem with Excel.
We are working with macros and it is in a Citrix envoirment.
We are filling an Excel sheet with data that works perfectly fine.
But our coworkers have made themself templates which are getting filled.
Now if you choose the template to be filled it is first pretty slow and then actually freezes/crashes.
What I have recognized when you choose the template like \server\folder\template.xls it crashes but if you choose it like "\server\folder\template.xls" it doesnt but the templates seem not to work as their saved macros won't run.
But what else diffrences between those two Options.
Is it really only macros?
As it seems, we had a problem with the excel Installtion.
There was a problem between Excel 2016 32bit, Excel 2016 64bit and Excel 365.
We made a new clear installation with excel 365 and it worked again.
Therefore still thank you for your help and Ideas.
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.
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.
I'm having the following issue: I've an Excel spreadsheet with a lot of VBA codes and ActiveX controls, including RExcel formulas.
The Excel version is 2007.
When I try to open this file, Task Manager says Excel isn't answering and something starts like if Excel started running endless codes; I deactivated each control and it still seems broken.
I would like to recover at least some formulas I've written in that spreadsheet, but this is actually impossible by opening the spreadsheet in conventional way.
Could you tell me how I can "read" formulas and text in that spreadsheet without opening it by Excel?
Thanks,
Indeed have calculation set to manual for a start.
Now set your security settings such that macros and activeX are disabled:
Excel Options > Trust Center > Trust Center Settings... > Macro Settings > Disable all macros with notification
For ActiveX I am not sure if there is a menu in excel-2007 like for macros, but if there is make sure it is set to not run as well.
Now you can open your excel workbook and it will not run your macro's and shouldn't auto calculate or update!
ADDED: I have had something like this in the past and this is what worked in 1 occasion: install an other office excel application, like open office (the calc application has the excel functionality) and see if it opens in that application. Then if it does, save the file (under another file name) and close it. Open the new file under MS Office Excel, and see what is still recoverable.
Good luck!
use a tool like 7zip to extract the files. the sheets/formulas are in the .xml
the code in a macro enabled spreadsheet is in a .bin file
this can be read with MalOfficeScanner