Microsoft KB Archive/213595

= XL2000: Error Message: Name Conflicts with Existing Module, Project, or Object Library =

Article ID: 213595

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition

-



This article was previously published under Q213595





SYMPTOMS
In the Visual Basic Editor in Microsoft Excel 2000, when you attempt to create a reference from one project to another project, you may receive the following error message:

Name conflicts with existing module, project, or object library



CAUSE
This behavior occurs when both projects have the same name.



RESOLUTION
To avoid this problem, rename the projects that have the same name. To do this, use one of the following methods.

Method 1
 In the Project Explorer pane in the Visual Basic Editor, look at the projects that are listed. You should see entries similar to the following

(Book1.xls)

(Book2.xls)

(Personal.xls)

where  is the name of the project. Click the entry for the project that you want to rename. On the Tools menu, click  Properties. Click the General tab. In the Project Name box, type a unique project name.

NOTE: Do not use a project name that you use in any other workbook. Click OK.</li> On the File menu, click Save , where   is the name of the workbook you modified.</li> Repeat steps 1-7 for all open workbooks that contain Visual Basic modules, class modules, or user forms.</li></ol>

Method 2
<ol> In the Project Explorer pane in the Visual Basic Editor, look at the projects that are listed. You should see entries similar to the following

(Book1.xls)

(Book2.xls)

(Personal.xls)

where  is the name of the project.</li> Click the entry for the project that you want to rename.</li> In the Properties pane, in the box to the right of "(Name)", type a unique project name and press ENTER.

NOTE: Do not use a project name that you use in any other workbook.</li> On the File menu, click Save , where   is the name of the workbook you modified.</li> Repeat steps 1-4 for all open workbooks that contain Visual Basic modules, class modules, or user forms.</li></ol>

After you rename all projects with unique project names, the error message no longer appears when you create a reference.

<div class="moreinformation_section">

MORE INFORMATION
By default, when you create a new workbook in Microsoft Excel 2000, the project name for the new workbook is "VBAProject" (without the quotation marks). This naming convention may cause a problem if you attempt to create a reference from one project to another with the same project name.

<div class="references_section">