PRJ4: "Cannot Find Macro" Choosing Existing Macro from Tools |
Q129001
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
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.Cannot find the macro '[<filename>]<module>!<macro>'
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:
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.Cannot find the macro '[Project1]Module1!Macro1'
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:
Keywords : kbcode kbprg kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 29, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |