MPRJ4: "Name Conflicts with Existing" Saving/Creating Macro (128524)



The information in this article applies to:

  • Microsoft Project for the Macintosh 4.0

This article was previously published under Q128524
kbother projmac

SYMPTOMS

In Microsoft Project, when you save an existing project file with a file name that contains a bracket character "[" or "]", you may receive the following error message
Name conflicts with existing module, project, or object library
followed by the error message:
An unexpected error occurred while saving the file. The file could not be saved.
Additionally, when you create a new macro in an existing project, and you choose to save the macro in the current project, you may receive the first error message listed above.

CAUSE

This behavior occurs when you save a project file that contains a Visual Basic module if you save the file with a file name that contains a bracket character, or when you create a new macro in a project file if the project file name contains a bracket character.

This behavior occurs because the bracket characters are used to denote a module in a particular project file. The brackets appear on either side of the project name in the Module Box on the Visual Basic toolbar. For example, the module Module1 in the Global Template file is displayed as [Global Template]Module1 in the Module Box on the Visual Basic toolbar.

WORKAROUND

To work around this problem, when you save a project file, avoid using the bracket characters in the project file name.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

When you save a project file that does not contain a macro, you do not receive an error message when you save the file with a file name that contains a bracket character. However, if you then create a macro, and you choose to store the macro in your new project file, you receive the error message described above. For this reason, it is better to save your project files with file names that do not contain he bracket character.

Note that in Microsoft version 4.0, when you open a Microsoft Project version 3.0 View file, the macros contained in the View file are converted to Visual Basic procedures in a module in the file. When you open a version 3.0 Calendar file in Microsoft Project version 4.0, a Visual Basic module is added to the file. Because of this, the error message described above occurs if you open a version 3.0 View or Calendar file in Microsoft Project version 4.0 and save the file with a file name that contains a bracket character.

REFERENCES

For more information about the Module Box, choose the Search button in Help and type:

Module Box


Modification Type:MajorLast Reviewed:11/5/2000
Keywords:kbbug KB128524