XL.Sheet.GetName
----------------

Returns the name of the sheet.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.GetName"; BookRef; SheetIndex ) 

**MBS**( **"XL.Sheet.GetName";** /\* Returns the name of the sheet. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**) /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |

### Result

Returns name or error message.

### Description

Returns the name of the sheet.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Font.GetName](XLFontGetName.md)
- [XL.Sheet.GetHeader](XLSheetGetHeader.md)
- [XL.Sheet.GetMerge](XLSheetGetMerge.md)
- [XL.Sheet.GetPaper](XLSheetGetPaper.md)
- [XL.Sheet.GetText](XLSheetGetText.md)
- [XL.Sheet.GetZoom](XLSheetGetZoom.md)
- [XL.Sheet.SetName](XLSheetSetName.md)
- [XL.Sheet.SetPaper](XLSheetSetPaper.md)

### Release notes

- **Version 8.2**
    - Added scope ID parameter for [XL.Sheet.GetNamedRange](http://www.mbsplugins.eu/XLSheetGetNamedRange.shtml) and [XL.Sheet.NamedRange](http://www.mbsplugins.eu/XLSheetNamedRange.shtml).

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[XL.Sheet.GetMerge](XLSheetGetMerge.md) - [XL.Sheet.GetNamedRange](XLSheetGetNamedRange.md)

[HTML Version](XLSheetGetName.shtml)