Creates a named range from a specified formula. A range is a collection of areas; an area is a rectangular collection of cells. This method can be used to create a non-rectangular range containing multiple rectangular areas. |
public Range CreateNamedRange(System.String rangeFormula, System.String rangeName) |
Public Function CreateNamedRange(ByVal rangeFormula As String, ByVal rangeName As String) As Range |
Formula representing the range, for example "=Sheet1!A1:G10". The formula must be three-dimensional (specify a sheet), and can include only sheet and cell references, and operators joining those references (range ':', intersection ' ', and union ','). |
The name of the new range. |
A Range object. |
Note that if a range named |
|