Spreadsheet.Range
This property returns/sets a range of cells(e.g., "C1R1:C3R2,C5R5:C6R6").
This property is read only.
| Syntax | Parameters | Return Value |
|---|---|---|
ReadOnly Property Spreadsheet.Range( _
cells As Variant) As Range
|
cells [in]
Type: Variant |
Range |
SVB Example
Selecting a range of cells:
Option Base 1
Option Explicit
Sub Main
Dim spr As Spreadsheet
'assigns the active spreadsheet to the object spr
Set spr = ActiveSpreadsheet
'Selects the designated ranges of cells
spr.Range("C1R1:C3R3,C5R5:C6R6").Select
End Sub