Mar 02 2024 05:13 PM
I have Office 365 on a PC running Windows 11 and on a Mac Mini running Sonoma. I develop on Widows. After testing thoroughly, I copy the .xlsm file over to Mac for testing there. I have been doing this for several years, and have gone through many rounds of testing on both Windows and Mac. But something seems to have changed recently.
Today, I ran the application on Mac in the usual way by double clicking the .xlsm file that I just brought over from the PC. The application halted with an Overflow error. In the Debugger, this was the problem line:
Dim i as Integer
i = 77
OK, that shouldn't overflow, should it? I was able to execute the line in the debugger without raising the overflow error. But when I let the program to run, it halted with an overflow at some other trivial assignment. Same story: single stepping in the debugger does not raise the error.
After trying several random things, I decided to launch Excel in a different way. I opened Finder, went to Applications, and double clicked Excel.app. In the Open window, I chose my .xlsm file. Now the application runs faultlessly with no runtime errors. To make sure it wasn't a fluke, I ran the test several times this way and it worked every time.
My question is this: On a Mac, what's the difference between (1) double-clicking an .xlsm file and (2) running Excel.app and then selecting the .xlsm file in the Open window?
Mar 04 2024 02:28 AM
Mar 04 2024 12:58 PM
Mar 05 2024 07:00 AM
SolutionMar 05 2024 11:15 AM
Mar 05 2024 02:04 PM
Mar 06 2024 12:04 AM
Mar 05 2024 07:00 AM
Solution