Selected Property

 

The Selected property returns or sets the selection state of an object. Returns a Boolean.

 

Syntax

object.Selected

object.Selected = Select

 

Parameter

Type

Description

Select

Boolean

required; true if the object is selected

 

Example 1

This example returns the selected state of an ellipse.

 

Debug.Print Ellipse.Selected

 

Example 2

This example selects a rectangle.

 

Rectangle.Selected = True

 

Used by: Shape object