iliace
Well-known Member
- Joined
- Jan 15, 2008
- Messages
- 3,562
- Office Version
- 365
- Platform
- Windows
Hi Everyone,
I wrote a VBA script about 10 years ago, which worked fine when I first built it (so long ago - the file name is still ".xls") I tried to use it recently in a modern version of Excel, and I am getting "Error 28 out of stack space" in certain situations. This was never an issue during the original development.
Specifically: the VBA is an algorithm that solves Sudoku puzzles, by trial and error, and with visualization. The algorithm is recursive in nature, and the stack overflow tends to occur just above ~50 levels of recursion. I can post the code, but I don't think that would be very informative; this is more of a conceptual question.
Does anyone have any insight into how stack limitations have changed in VBA in recent versions of Excel? I am trying to wrap my mind around the fact that it worked in year 2007, in Excel 2003/2007, but now throws this error for exact same scenarios in Office 365, which did not happen previously.
Windows 10 Professional (Version 1803) OS Build 17134.765, Excel 1906, Build 11708.20006.
I wrote a VBA script about 10 years ago, which worked fine when I first built it (so long ago - the file name is still ".xls") I tried to use it recently in a modern version of Excel, and I am getting "Error 28 out of stack space" in certain situations. This was never an issue during the original development.
Specifically: the VBA is an algorithm that solves Sudoku puzzles, by trial and error, and with visualization. The algorithm is recursive in nature, and the stack overflow tends to occur just above ~50 levels of recursion. I can post the code, but I don't think that would be very informative; this is more of a conceptual question.
Does anyone have any insight into how stack limitations have changed in VBA in recent versions of Excel? I am trying to wrap my mind around the fact that it worked in year 2007, in Excel 2003/2007, but now throws this error for exact same scenarios in Office 365, which did not happen previously.
Windows 10 Professional (Version 1803) OS Build 17134.765, Excel 1906, Build 11708.20006.
Last edited: