Edit

Share via


Range.Item[Object, Object] Property

Definition

Returns a Range object that represents a range at an offset to the specified range.

public object Item[object RowIndex, object ColumnIndex] { get; set; }

Parameters

RowIndex
Object

Required Object. The index number of the cell you want to access, in order from left to right, then down. Range.Item(1) returns the upper-left cell in the range; Range.Item(2) returns the cell immediately to the right of the upper-left cell.

ColumnIndex
Object

Optional Object. A number or string that indicates the column number of the cell you want to access, starting with either 1 or "A" for the first column in the range.

Property Value

Remarks

The RowIndex and ColumnIndex arguments are relative offsets. In other words, specifying a RowIndex of 1 returns cells in the first row of the range, not the first row of the worksheet.

Applies to