Share via


RangeSelection Property

Returns a Range object that represents the selected cells on the worksheet in the specified window. Read-only.

expression.RangeSelection

*expression   * Required. An expression that returns a Window object.

Remarks

This property in identical in functionality to the Selection property.

Example

This example sets sets the font of the selected cells to bold.

Spreadsheet1.ActiveWindow.RangeSelection.Font.Bold = True

Applies to | Window Object

See Also | Range Property