Project.CodeName property (Project)

Gets the code name for the project. Read-only String.

Syntax

expression. CodeName

expression A variable that represents a Project object.

Remarks

The code name is the name of the module that stores event macros (and other macros you may have defined) for a project. The default name for the module is "ThisProject"; you can view it in the Project window in the Visual Basic Editor.

Changing the project name doesn't change the code name, and changing the code name (using the Properties window in the Visual Basic Editor) doesn't change the project name.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.