Project contains too many procedure, variable, and constant names
A project's procedure, variable, constant, and parameter names are stored in a name table. This error has the following cause and solution:
- The number of names in the project's name table exceeds 32,768. The name table may contain some temporary duplicates. You can compact the name table by saving the project to a disk, and then closing it. If the problem persists after you reopen the project, reduce the number of names by reusing local variable names in multiple procedures, and then recompact the table by saving the project, closing it, and reopening it.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.