Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Returns the specified named Range. If the named range does not exist, the method returns null.

Signature
C#
C#
 public Range GetNamedRange(System.String name)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Function GetNamedRange(ByVal name As String) As Range
{signature}
{parameters}
{param:name}The name of the range.{param}
{returns}A named {{Range}} object, or null if the range does not exist.{returns}
{example}{code:csharp|title=C#}
Parameters
Param
name
name

The name of the range.

Returns

A named Range object, or null if the range does not exist.

Example
Code Block
csharp
csharp
titleC#

Range rng = wb.GetNamedRange("Range1");
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim rng As Range = wb.GetNamedRange("Range1")
{code} {example}