Selection Property [AutoWksWindow]
The Selection property returns or sets the 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 remarks |
Remarks
The range is specified as a WksRange object, as a range string ("A1:B5"), or as a cell coordinate string ("A5"). Also see Specifying Cell Coordinates.
Example
This example demonstrates how to select a range of cells.
WksWindow.Selection = "A1:B5"
Used by: AutoWksWindow object