XL5 Err Msg: "Not Enough Memory" With Indirect Defined NamesLast reviewed: September 12, 1996Article ID: Q109209 |
The information in this article applies to:
- Microsoft Excel for Windows, version 5.0
SUMMARYIn Microsoft Excel version 5.0, defined names are normally limited to 20 levels of indirection. If you use a defined name that exceeds this limit, you will receive the "Not enough memory" error message.
MORE INFORMATIONA level of indirection in defined names is created when one name refers to another name or to a cell reference. If you have the following names defined in a workbook (Book1)
Name Refers to Level of indirection -------------------------------------------- Test1 =Sheet1!$A$1 1 Test2 =Book1!Test1 2 Test3 =Book1!Test2 3 Test4 =Book1!Test3 4 Test5 =Book1!Test4 5 Test6 =Book1!Test5 6 Test7 =Book1!Test6 7 Test8 =Book1!Test7 8 Test9 =Book1!Test8 9 Test10 =Book1!Test9 10 Test11 =Book1!Test10 11 Test12 =Book1!Test11 12 Test13 =Book1!Test12 13 Test14 =Book1!Test13 14 Test15 =Book1!Test14 15 Test16 =Book1!Test15 16 Test17 =Book1!Test16 17 Test18 =Book1!Test17 18 Test19 =Book1!Test18 19 Test20 =Book1!Test19 20 (the limit) Test21 =Book1!Test20 21where each line represents one level of indirection, and if you attempt to use a name that exceeds the 20th level of indirection, you will receive the "Not enough memory" error message. You may also receive this error message if you try to delete a name that has too many levels of indirection below it. For example, if you try to delete the name "Test1", you may receive the error message because the name "Test21" is 20 or more levels of indirection away.
Steps to Reproduce ProblemMicrosoft provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This Visual Basic procedure is provided 'as is' and Microsoft does not guarantee that it can be used in all situations. Microsoft does not support modifications of this procedure to suit customer requirements for a particular purpose. Note that a line that is preceded by an apostrophe introduces a comment in the code--comments are provided to explain what the code is doing at a particular point in the procedure. Note also that an underscore character (_) indicates that code continues from one line to the next. You can type lines that contain this character as one logical line or you can divide the lines of code and include the line continuation character. For more information about Visual Basic for Applications programming style, see the "Programming Style in This Manual" section in the "Document Conventions" section of the "Visual Basic User's Guide." To create an example that demonstrates what can happen if you exceed the limit of 20 levels of indirection, do the following:
|
KBCategory: kberrmsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |