Description |
---|
Excerpt |
---|
Creates a named range, containing one area. A range is a collection of areas; an area is a rectangular collection of cells. |
Signature | ||||
---|---|---|---|---|
| ||||
public Range CreateNamedRange(int firstRow, int firstColumn, int numRows, int numColumns, System.String rangeName) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Function CreateNamedRange(ByVal firstRow As Integer, ByVal firstColumn As Integer, ByVal numRows As Integer, ByVal numColumns As Integer, ByVal rangeName As String) As Range |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
0-based first row of the range. |
Param | ||||
---|---|---|---|---|
| ||||
0-based first column column of the range. |
Param | ||||
---|---|---|---|---|
| ||||
Number of rows in the area. Maximum: The row limit of the file format you are using. |
Param | ||||
---|---|---|---|---|
| ||||
Number of columns in the range. Maximum: The column limit of the file fortmat you are using. |
Param | ||||
---|---|---|---|---|
| ||||
The name of the new range. |
Returns |
---|
A Range object. |
Remarks |
---|
Note that if a range named |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|