Mar 23 2023 05:43 AM
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 refused to open on 2 different work PCs, both running the same, fully updated version of Excel from an Office 365 E3 business subscription. Whilst I thought this one file may be corrupt, I have used this file for many years, with many older versions on the file saved (some of which have not been used/opened for years) - and Excel was suddenly unable to open these versions either!? When trying to open the file, Excel would simply freeze for a bit, then close with no error messages. Opening Excel in safe mode made no difference, same issue. Further info on this led me to believe the problem was with the latest version of Excel as:
- opening the file on a laptop with a less recently updated version of Excel worked fine
- I could preview the file fine in the Windows Explorer preview pane
- by opening the file on the laptop, and saving it as an .xlsm file it worked -the .xlsm file can be opened on all PCs
- NB I could NOT open the .xlsb file in Office 365 via the browser, I got an error message saying it needed to be viewed in the desktop (which of course didn't work either)
So there is something in this file (and previous versions) that the latest version of Excel/Excel online does not like. NB other .xlsb files I have so far seem fine.
This looks very similar to another user's issues, reported in Jan 2020 (which appears unresolved):
https://techcommunity.microsoft.com/t5/excel/excel-workbook-xlsb-crashes-on-new-computer-and-latest-...
Can anyone shed any light? I now have a working .xlsm file - but I was only able to do this as I had a laptop with a different version of Excel on - if this wasn't the case then I could have been scuppered. And it makes me wary of using .xlsb files full-stop for now!
Mar 24 2023 12:06 AM
There are several possible reasons why Excel crashes when opening an .xlsb file, such as corrupted cache, outdated software, incompatible add-ins, conditional formatting, antivirus interference, or system issues.
Some of the solutions that you can try, perhaps you have already tried a few, here with the order:
If none of these solutions work, you may have a corrupted .xlsb file that needs to be repaired.
You can try saving the file in an old format (.xls) on a different computer that can open it, then re-saving it as .xlsb. This may fix some of the corruption issues.
You can also use a third-party tool to repair your .xlsb file, such as Stellar Repair for Excel or Kernel for Excel Repair. These tools can scan your file and recover data from damaged worksheets. Have not used these tools myself, but are recommended by some, so without guarantee.
I hope this helps you resolve your issue.
I know I don't know anything (Socrates)
Mar 24 2023 01:04 AM
Aug 08 2023 07:22 PM - edited Aug 08 2023 07:24 PM
Hi, did you ever get this resolved? I seem to have a similar problem where my .xslb file immediately closing when opening with no error message. Excel then does a repair and it works. But after a while making some macro changes, it happens again. I have tried removing all macros and reloading. Same problem after a while. I am on Windows 10, Office 360 16.0.16501.20074 64 bit.
BTW. My Workbook has 82 sheets and 276 marcos.
Aug 09 2023 03:12 AM
@Duwat13 Sorry no. I was able to convert the file to .xlsm and all was fine. It did take a bit of sorting, but if you are able to open the file occasionally then I'd do this. For me, the only real advantage to a .xlsb file was smaller file size, but not much of an advantage if it doesn't work....!
Oct 24 2023 02:17 PM - edited Oct 24 2023 02:19 PM
Little late to the piece but I had (and still have on occasion) this issue and use the following 14 steps to resolve it:
Hope that helps.
Regards,
Robert
Dec 05 2023 01:09 AM
@JasposHello,
maybe this help is not too much but look at it:
I tried it several times in a situation like the one below and it works.
- My Excel is a very complex form of VBA, functions and automation in every area even for several external files (also files accessed with autogenerated name related to data in sheets which isn't possible as M$oft said - yes it is possible)
- I have such a habit to check after saving whether the file continues to open (Microsoft software in most cases is very defective and unprofessional compared to Apple)
- one day I open the main file and what do I see - crash without warning, totally nothing helped, neither cache nor reinstallation completely nothing. The file seemed to be damaged
- Another habit is always making a backup before opening the file for further work (usually adding next version number)
- renaming the corrupted file to another file - I open and it works! Excel has not crashed. I just change file name!
- back to the exact previous name - Excel crash! Vvery professional amateur problems in m$ but predictable
- rename the corrupted file again - I open and it works, no crash
- just to be sure, I return to the previous version of the name, again crash, when I duplicate this file and it already has the note "- Copy" ... copy also crash
- I delete the copy because there is no point
- I rename the original file to anything else - the result - it opens, no crash! exactly as before...
- after opening it saves via Save As... under the name I use in automation (the same one which I found out my file is damaged!). I close everything including Excel
- I open the newly saved file with the option Save as... - and it works! no crash :)
Very strange but after all this the newly saved file is smaller by about 25% in bytes. Everything in it is okay, VBA works and, the file looks like recovered.
The question is what kind of garbage Excel professional programmers include to saving for themselves, and probably their teams of programmers don't even know what kind of mess they are making, how to fix it, so they ignore it.
I have noticed this many times whether in Word, PowerPoint and especially Excel re-writing a document clears or deletes some information (in Excel its really a lot!). I don't know what kind but in this particular situation it helps more than 3 times with different files.
This is an age-old problem of Windows, a very amateurish and failed system written by amateurs. They just copy ideas without knowing how to do it right. It's just a shame that such a very successful - the only (!) - M$oft product started from Lotus, today Excel has such defects and problems. This type of situation never happened on the version for Mac OS X Excel 365 and to buy for not much money. Does the benefit of Apple's brilliant, extremely stable and secure system help?
Regards,
and I believe it help someone :)
Dec 12 2023 10:20 PM
@Jaspos A friend had that issue yesterday. He brought me the machine...The change of printer didn't help because maybe the machine was not connected to any active printer...
The simple solution I found was to disable protected view settings by clicking on the phrase:"Be careful-files from the internet.....in protected view" by the side of Enable Editing.
In the Protected View Orange box, click on Protected View settings.
Disable what it necessary and get your work done...
You can go back and enable protected View when you are done.
Jan 18 2024 03:49 AM
@Orghal Today I had a very similar problem. A complex Excel powerquery file (no VBA though) suddenly freezing Excel every time I open it (Windows 11 + Office 365). Strange enough, the same file would open fine on another PC (with very similar setup Wni11 / Office 365).
And COPYING the file did also the trick ! Note that just changing the name of the file was not enough.
If not reading that post I would have never tried it.
So thanks a lot but so puzzled by such MS quirk!
Jan 18 2024 07:58 PM
Feb 29 2024 04:00 AM
Its been my experience that Office 64 bit has serious defects, and back in 2011 or so they published on their developer website no intention of fixing the known issue causing your file to automatically close. It has to to with VISUAL BASIC. They released office with a 32 bit VB in it, despite being 64 bit office. Bug #1. They also have an unwanted Book1.xlsx that the save process will automatically create, and it is unneeded and causes the error. The VB code gets saved correctly in the xlsm file, then it adds the unwanted hidden file in error. This goes way back to Office 1998, then they thought having one file hidden that would contain all your macros was a good idea. They still have snippets of code in office that they cannot fix or locate that is trying to still save this hidden file. This is then causing your machine to open the xlsm file today, and it acts like there is an error in the file. There are no errors with your file. Just OPEN EXCEL first, a blank workbook, then click FILE OPEN and browse to your file, then in the dialogue where it sayd OPEN inthe lower right, click the tiny down errors, and use Open and Repair. It will open the file file and get rid of the unwanted file that windows adds as a brazen defect of windows .
Mar 03 2024 03:35 PM
This sounds interesting and could be the problem with my .xlsb file. It is around 12MB with 80 worksheets and 250 macros.
After some saves, when reopening it crashes with no message. Then opening after crashing it does repair and seems to work okay. I always now keep saving after every minor change so that if I have a crash I can go back to previous saved version that doesn't crash. It does mean I end up with hundreds of saved versions! Very annoying!
I have to constantly check after I save a version if it will open without crashing. I was thinking it could be a memory issue as sometimes (rarely) when saving Excel says something about Out of Memory. However I can't find any reason for why sometimes it gets corrupted and crashes without any error message.
Mar 19 2024 08:31 PM
@Duwat13 Definitely good idea need to try it and check for unneeded files. Good suggestion. From my side I can include that Microsoft never fixing real bugs because peoples and teams not work so long in this fake company. Guys which create it or know something they are gone from m$oft and they don't have any documentation. In the times of Windows 3.1 I wrote in Visual Basic for Atari Falcon completely replicate Word with exact the same GUI in 2 weeks, so can imagine what kind of mess they have in m$oft to make any positive actions and fix this problem (as many other) asap? Impossible, amateur company and programmers, that's all about any software from m$ created for it's own operating system windows. I am just thinking why 365 for Apple Mac OS X do not have such a problems, with the same files I never detect there is bugs. M$oft is like a covid, this is the first virus in the World not any thing else.
Mar 19 2024 09:02 PM
Mar 19 2024 09:09 PM
Mar 20 2024 12:54 AM
Unfortunately, with so many posts without more detailed information and inappropriate comments, I can only provide general information that I think is correct.
First of all, I am not an employee of any call center or Microsoft. I'm a simple user like most people here. My answers are voluntary and without guarantee.
To be clear, not everyone has the same problem, even though it might seem so. That's why it's always recommended to publish a new post, as everyone can have a different hardware and software configuration.
If a lot of things are unclear from the start regarding the hardware and software configuration, it is good to give general step-by-step instructions that ignore the basic sources of errors.
In this link you will find some more information about it:
Welcome to your Excel discussion space!
At the same time, I ask you to behave politely and not to make yourself important with personal direct or indirect insults.
I will no longer participate in this post, thank you for your patience and understanding.
Mar 28 2024 02:51 AM - edited Mar 28 2024 02:52 AM
I am also using very large EXCEL files, with a lot of VBA code, many named ranges, and it contains many intended links to other EXCEL files.
For several years my EXCEL file crashed up to 10 times a day for no particular reason at random moments and sometimes it could no longer be opened.
I have been able to solve it by following 2 measures (one work-around and one true solution:(
In my case, after having implemented my 'true solution' I have now been able to work without serious stability issues for about 4 years.
As instabilities for other users can have different root causes, my true solution (2.) might not help you, but this suggestion might help others.
My work-around (1.) can be a helpful feature for everyone who does (or does not) experience any stability issues with EXCEL.
Hopefully, EXCEL users can benefit from these experiences.