Wednesday, February 17, 2021

Set the properties for a visual basic project in office for mac

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.

No comments:

Post a Comment