Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Gets the named range coordianates by name.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Sheet.GetNamedRange"; bookRef; sheetIndex; name; selector { ; ScopeID } )   More


Parameter Description Example Flags
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
sheetIndex The index of the sheet. This number ranges from 0 to XL.Book.SheetCount-1. 0
name The name of the named range. "test"
selector Which value to return: rowFirst, rowLast, colFirst, colLast, name. "rowFirst"
ScopeID The scope ID to use for search.
Can be -2 for undefined, -1 for workbook or positive number for other IDs.
Default is undefined.
-1 Optional


Returns value or error.


Gets the named range coordianates by name.

See also

Release notes

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 16th March 2018

XL.Sheet.GetName - XL.Sheet.GetPaper

💬 Ask a question or report a problem