Selection Object (Project)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a selection in the active project. There is no collection for Selection objects. The Selection object can be accessed only through the ActiveSelection property of the Application object.

Using the Selection Object

Use the ActiveSelection property to return a Selection object. The following example lists the names of all the resources in the selection.