RangeSelection Property

Microsoft Office Web Components Visual Basic

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