Microsoft KB Archive/129001

{|
 * width="100%"|

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

 * }

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 '[ ] ! '

where is the name of the file that contains your macro, such as Project1 or GLOBAL.MPT, is the name of the module in which you created your macro, and 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.