ID: Q129001
The information in this article applies to:
In Microsoft Project, when you select a command from the Tools menu that you have assigned to run a macro, you may receive the following error message even if the macro exists
Cannot find the macro '[<filename>]<module>!<macro>'
where <filename> is the name of the file that contains your macro, such as
Project1 or GLOBAL.MPT, <module> is the name of the module in which you
created your macro, and <macro> is the name of the macro that you are
trying to run.
This problem occurs if you rename the module that contains a macro that you have assigned to the Tools menu. For example, if you assign the macro Macro1 to the Tools menu while Macro1 is contained in the module Module1 in Project1, if you then rename the module that contains Macro1, you receive the following error message when you choose the command on the Tools menu to run Macro1:
Cannot find the macro '[Project1]Module1!Macro1'
Additionally, although you can assign the macro again to the Tools menu,
you cannot remove the original menu command that runs the macro from the
module with the original name.
Note that this problem does not occur in Microsoft Project version 4.0 for the Macintosh.
To avoid receiving this behavior when you rename a module, be sure to remove any macro from the Tools menu that is contained in the module before you rename the module.
To work around this problem, rename the module back to the original module name, and then remove the macro command from the Tools menu. You can then rename the module to the new name, and add the macro back to the Tools menu if desired.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
For more information about Assigning Or Removing A Macro As A New Command On The Tools Menu, choose the Search button in Help and type:
Tools menu
Additional query words: 4.00
Keywords : kbcode kbprg
Version : 4.0
Platform : WINDOWS
Last Reviewed: November 25, 1997