Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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

  1. To begin, click Tools > Macro > Visual Basic Editor.

  2. On the Tools menu, click VBAProject Properties (In Word, click Project Properties), and then click the General tab.

  3. 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.

  4. In the Project Description box, enter the description that will display in the Description pane at the bottom of the Object Browser.

  5. 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.

  1. On the Tools menu, click VBAProject Properties, and then click the General tab (In Word, click Project Properties, and then click the Protection tab).

  2. To lock your Visual Basic project, select the Lock Project for Viewing check box.

  3. Under Password to View Project Properties, in the Password box, enter the password and then in the Confirm Password box, enter the password again.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×