Select Method

Selects a shape with the specified ID (the ID property).

Applies to: Window object

Syntax

[[Let] boolRet =] object.Select ( shapeID )

The Select method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Window object.

shapeID

Required. An expression that returns a Long value. Specifies the ID of the shape.
boolRet Optional. A Boolean type variable.

Remarks

This method is only effective if the window is of the document view type (see the Type property). For windows of all other types, the Select method always returns False.

If there is a shape with the specified ID in the shape collection of the page or group, displayed in the window, the Select method selects the shape and returns True. Otherwise (or if the object is already selected), the Select method returns False. This method doesn't deselect already selected shapes on the page or in the group. The inverse method to Select is the Deselect method, which removes selection from the shape with the specified ID (the ID property).

 

See Also

ID property, Type property, Deselect method, DeselectAll method, SelectAll method, SelectedNum method