Visual Basic Extensibility Reference

Description Property Example

The first of the following examples uses the Description property to assign a description to a particular project; the example also prints the description to verify that the assignment was successful.

The second example uses the Description property to return the descriptive names of the specified Reference objects in a particular project.

Application.VBE.VBProjects(1).Description = "Hot Sauce"
Debug.Print Application.VBE.VBProjects(1).Description

Debug.Print Application.VBE.VBProjects(1).References(1).Description

Debug.Print Application.VBE.VBProjects(1).References(2).Description