ExpertXls Excel Library for .NET
AddNamedRange Method (referencedRange, name)
Namespaces ► ExpertXls.ExcelLib ► ExcelNamedRangesCollection ► AddNamedRange(ExcelRange, String)
ExpertXls Excel Library for .NET
Creates and adds a new named range to the collection.
Declaration Syntax

C# | Visual Basic | Visual C++

    public ExcelNamedRange AddNamedRange(
    	ExcelRange referencedRange,
    	string name
    )

    Public Function AddNamedRange ( _
    	referencedRange As ExcelRange, _
    	name As String _
    ) As ExcelNamedRange

    public:
    ExcelNamedRange^ AddNamedRange(
    	ExcelRange^ referencedRange,
    	String^ name
    )

Parameters

referencedRange (ExcelRange)
  The referenced ExcelRange.

name (String)
  The name of the new named range.

Return Value
The newly created named range.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)