Forum Discussion
Jaspos
Mar 23, 2023Copper Contributor
Excel crashes when opening a specific (complex) .xlsb file (and all previous versions of it too)
I have a business critical Excel .xlsb file, that I have been updating/using for years (it contains about 20 sheets, and a lot of VBA code - none of which runs on opening). Yesterday, the file ref...
Trebor76
Oct 24, 2023Copper Contributor
Little late to the piece but I had (and still have on occasion) this issue and use the following 14 steps to resolve it:
- If open close all workbooks and Excel
- Open Excel
- Follow the path File > Options > Trust Center > Trust Centre Settings
- In the left-hand panel of the Trust Center dialog click on Macro Settings
- Use the Snipping Tool to take a screen shot of what the current macro settings are
- Click the Disable VBA macros without notification radio button and unselect any other option(s)
- Click OK twice
- Open the binary file that is automatically closing upon trying to be opened which should now open. If still doesn't I have no idea I'm afraid
- Go into your code and follow the menu path Debug > Compile VBA Project
- Fix any syntax errors and when the code compiles without issue follow the menu path File > Close and Return to Microsoft Excel
- Save and close the binary file opened in step eight
- Close Excel
- Open Excel and reset the macro settings as they were from the screen shot taken in step five
- Open the binary workbook from step eight
Hope that helps.
Regards,
Robert