ID: Q116280
In Microsoft Excel, if you have a defined name in a workbook that is the same as a macro name on a Microsoft Visual Basic for Applications module, you may receive one of the following error messages:
Cannot find macro <name>
-or-
The macro '<name>' cannot be found.
where <name> is the name of the macro assigned to the object.
To ensure that this message does not occur, do either of the following:
-or-
<module name>.<macro name>
Worksheet names or Excel 4.0 Macro sheet names take precedence over the names of macros on module sheets. Because of this order of precedence, the macro name assigned to the object is replaced with the newly defined workbook name (which is not a macro).
Additional query words: 5.00 5.00a 5.00c 7.00 7.00a macro XL5 XL7 XL97 XL98
Keywords : kbprg kbdta PgmOthr KbVBA
Version : WINDOWS:5.0,5.0c,7.0,97; MACINTOSH:5.0,98
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Last Reviewed: January 2, 1999