Selection Property [WksWindow]

 

The Selection property returns or sets the worksheet window's selected range. A null is returned if nothing is selected. Returns a variant.

 

Syntax

object.Selection

object.Selection = Range

 

Parameter

Type

Description

Range

Variant

required; see Specifying Cell Coordinates

 

Remarks

The range is specified as a range object, as a range string ("A1:B5"), or as a cell coordinate string ("A5").

 

Example

This example demonstrates how to select a range of cells.

 

WksWindow.Selection = "A1:B5"

 

Used by: WksWindow object