April 2006
Beginner
1114 pages
98h 16m
English
range.Offset([RowOffset], [ColumnOffset])
Returns a Range object representing a range of cells offset from the specified range by a specified number of rows or columns.
|
Argument |
Settings |
|---|---|
|
|
The number of rows by which the range should be offset. A negative value offsets the rows upward. |
|
|
The number of columns by which the range should be offset. |
The following code activates a range one row down and one column to the right of the specified range:
Dim r As Range
Set r = ActiveSheet.Range("A1:B5")
r.Offset(1, 1).ActivateRead now
Unlock full access