RangeSelection Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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