excel vba - Is there a call stack level limit? -
Some of my colleagues are looking at some bad codes in Excel VBA, thinking that there is a limit in the number of levels a Call stack
Unless the function is tail-recursive and VBA can handle it Can not do), you will participate in a stack overflow.
As a simple test, I've hoped to snap the following snippet together:
Slow calculation as count number (count) count = count + 1 cells ( 1, 1) = Counting R and all
which tells us that at least 4007 iterations of this limit are in my 2007 edition.
Comments
Post a Comment