Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

XL.Book.SheetIndexForName

Queries sheet index for sheet name.

Component Version macOS Windows Linux Server iOS SDK
XL 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Book.SheetIndexForName"; bookRef; Name )   More

Parameters

Parameter Description Example
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
Name The name of the sheet to keep. "People"

Result

Returns number or error.

Description

Queries sheet index for sheet name.
Returns empty result if not found.

Examples

Shows index for a sheet:

Show Custom Dialog ["Sheets"; MBS("XL.Book.SheetIndexForName"; $bookRef; "Reiter 2")]

See also

Blog Entries

This function checks for a license.

Created 4th November 2015, last changed 4th November 2015


XL.Book.SheetCount - XL.Book.Sheets

💬 Ask a question or report a problem