XL2000: How to Programmatically Change the Project Name Property (213764)
The information in this article applies to:
This article was previously published under Q213764 SUMMARY
By default, when you open a new workbook in Microsoft Excel 2000, the Name property for the workbook project is "VBAProject" (without the quotation marks). This naming convention may cause a problem if you manually or programmatically attempt to create a reference from one project to another. If you try to create a reference between two projects that have the same Name property, the following error message appears:
Name conflicts with existing module, project, or object library.
You can change the Name property for a project in the Properties window in the Visual Basic Editor, or you can programmatically change the Name property. This article provides sample macro code for changing the Name property of a project.
REFERENCESFor additional information about programmatically changing the Name property, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
213529 How to Programmatically Create a Reference
213595 XL2000 Err Msg: Name Conflicts with Existing Module, Project, or Object Library
For more information about references, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type references command(tools menu) in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
212536
OFF2000: How to Run Sample Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kberrmsg kbhowto kbProgramming KB213764 |
---|
|