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
Related
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 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
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.
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.