Description |
---|
Excerpt |
---|
Creates a named Range of cells from a specified formula. A |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Creates a named [Range|Range] of cells from a specified formula. A {{Range}} is a collection of [Area|Area] s; an {{Area}} area is a rectangular collection of cells.{excerpt}
{signature:C#}
public Range CreateNamedRange(System.String rangeFormula, System.String rangeName)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function CreateNamedRange(ByVal rangeFormula As String, ByVal rangeName As String) As Range
|
Parameters |
---|
Param | ||
---|---|---|
rangeFormula | rangeFormula | Formula representing the range, for example "=Sheet1{signature} {parameters} {param:rangeFormula}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 ','\). Functions that return ranges cannot be used. |
Param | rangeName | rangeName |
The name to assign to the range. |
Returns |
---|
Range A |
Remarks |
---|
Note that if a range named |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |