Set the properties for a Visual Basic project

Which Office program are you using?

Word

PowerPoint

Excel

Word

You can set the properties for a Visual Basic project, and then set how you want to help protect the project.

Do any of the following:

Set the project properties

  1. On the Tools menu, click Project Properties, and then click the General tab.

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

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

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

PowerPoint

You can set the properties for a Visual Basic project, and then set how you want to help protect the project.

Do any of the following:

Set the project properties

  1. On the Tools menu, click VBAProject Properties, and then click the General tab.

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

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

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

  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.

Excel

You can set the properties for a Visual Basic project, and then set how you want to help protect the project.

Do any of the following:

Set the project properties

  1. On the Tools menu, click VBAProject Properties, and then click the General tab.

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

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

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

  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.

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×