April 2006
Beginner
1114 pages
98h 16m
English
range.Item(RowIndex, [ColumnIndex])
Returns a Range object representing a cell within the specified range.
|
Argument |
Settings |
|---|---|
|
|
The row index of the row to return, relative to the first cell of the range |
|
|
The column index of the column to return, relative to the first cell of the range |
The following code changes the color of the cell in the second row and column of the range to green:
Dim r As Range
Set r = ActiveSheet.Range("A1:B5")
r.Item(2, 2).Interior.ColorIndex = 4Read now
Unlock full access