You can set the properties for a Visual Basic project, and then set how you want to help protect the project.
Do either of the following:
Set the project properties
-
To begin, click Tools > Macro > Visual Basic Editor.
-
On the Tools menu, click VBAProject Properties (In Word, click Project Properties), and then click the General tab.
-
In the Project Name box, enter the name that identifies your component in the registry of the Object Browser.
The project name is the name of the type library for your component. The type library, or TypeLib, contains the description of the objects and interfaces provided by your component.
-
In the Project Description box, enter the description that will display in the Description pane at the bottom of the Object Browser.
-
In the Conditional Compilation Arguments box, enter the constant declarations used for conditional compilation.
Help protect the project
You can lock a project to help prevent someone from changing it or set a password to view the project properties.
-
On the Tools menu, click VBAProject Properties, and then click the General tab (In Word, click Project Properties, and then click the Protection tab).
-
To lock your Visual Basic project, select the Lock Project for Viewing check box.
-
Under Password to View Project Properties, in the Password box, enter the password and then in the Confirm Password box, enter the password again.
No comments:
Post a Comment