MichaelSchulz
Board Regular
- Joined
- Apr 10, 2014
- Messages
- 64
I have an Excel file with a VBA project that had been working just fine until recently. I have finally tracked the problem but it does not make much sense:
At one point, the code within the Excel file opens another file to get a value—this second file is provided by an outside third-party.
When the code attempts to open the most recent file, Excel crashes. It just closes entirely. No option to save.
I have found that this other file contains cell comments; if I remove all of these comments, then the process runs fine.
Nothing crashes. If just one of these cell comments remain, the process crashes when VBA attempting to open the file.
Why should the existence of cell comments cause my VBA process to crash Excel?
My VBA project was created in Excel Profession Plus 2013—what if this third-party file was created by a more current version of Excel? Is there something about cell comments in the most recent versions of Excel that might cause a problem when being manipulated by VBA in an older version of Excel? Seems a stretch but I cannot think of any reason why cell comments should be the reason the process should crash when attempting to open the file.
Does anyone have any ideas?
At one point, the code within the Excel file opens another file to get a value—this second file is provided by an outside third-party.
When the code attempts to open the most recent file, Excel crashes. It just closes entirely. No option to save.
I have found that this other file contains cell comments; if I remove all of these comments, then the process runs fine.
Nothing crashes. If just one of these cell comments remain, the process crashes when VBA attempting to open the file.
Why should the existence of cell comments cause my VBA process to crash Excel?
My VBA project was created in Excel Profession Plus 2013—what if this third-party file was created by a more current version of Excel? Is there something about cell comments in the most recent versions of Excel that might cause a problem when being manipulated by VBA in an older version of Excel? Seems a stretch but I cannot think of any reason why cell comments should be the reason the process should crash when attempting to open the file.
Does anyone have any ideas?