PRJ4: "Cannot Find Macro" Choosing Existing Macro from Tools

Last reviewed: November 24, 1997
Article ID: Q129001
The information in this article applies to:
  • Microsoft Project for Windows, version 4.0

SYMPTOMS

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.

CAUSE

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.

WORKAROUNDS

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.

STATUS

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.

REFERENCES

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
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.