Selected Property

Selected returns or sets the selection state of the shape. It has a Boolean value. The value is 'True', when the shape is selected and 'False', when the value is not selected.

Syntax

object.Selected

object. Selected = Select

Parameter

Type

Description

Select

Boolean

required

Example 1

This example demonstrates how to return whether or not an ellipse has been selected.

Debug.Print Ellipse.Selected

Example 2

This example demonstrates how to select a polyline.

Polyline.Selected = True

Example 3

This script displays all the methods and properties in the Shape object.

Used by: Shape object