GetRangeByName

GetRangeByName(string)

Gets Range object by pre-defined name.

public Range GetRangeByName(string rangeName)
Parameter Type Description
rangeName String Name of range.

Return Value

Range object.

Returns null if the named range does not exist.

See Also


GetRangeByName(string, int, bool)

Gets Range by pre-defined name or table’s name

public Range GetRangeByName(string rangeName, int currentSheetIndex, bool includeTable)
Parameter Type Description
rangeName String Name of range or table’s name.
currentSheetIndex Int32 The sheet index. -1 represents global .
includeTable Boolean Indicates whether checking all tables.

See Also