Description Property

Applies To

VBProject object.

Description

Returns or sets a string expression containing a descriptive string associated with an object. For the VBProject object, read/write; for the Reference object, read-only.

Remarks

For the VBProject object, the Description property returns or sets a descriptive string associated with the active project.

For the Reference object, the Description property returns the descriptive name of the reference.

See Also

GUID property, HelpContextID property, Major property, Minor property, Name property, Version 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