XL.Sheet.Table
--------------

Gets the table parameters by index.

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

MBS( "XL.Sheet.Table"; BookRef; SheetIndex; Index; Selector ) 

**MBS**( **"XL.Sheet.Table";** /\* Gets the table parameters by index. \*/  
**$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 \*/   
**$Index**; /\* The index of the table to query.e.g. 0 \*/   
**$Selector**) /\* Which value to query.  
Can be rowFirst, rowLast, colFirst, colLast, headerRowCount (the number of header rows showing at the top of the table. 0 means that the header row is not shown), totalsRowCount (the number of totals rows that shall be shown at the bottom of the table. 0 means that the totals row is not shown) or name.e.g. "rowFirst" \*/ 

### 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 |
| Index | The index of the table to query. | 0 |
| Selector | Which value to query.   Can be rowFirst, rowLast, colFirst, colLast, headerRowCount (the number of header rows showing at the top of the table. 0 means that the header row is not shown), totalsRowCount (the number of totals rows that shall be shown at the bottom of the table. 0 means that the totals row is not shown) or name. | "rowFirst" |

### Result

Returns OK or error.

### Description

Gets the table parameters by index.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.AddTable](XLSheetAddTable.md)
- [XL.Sheet.Merge](XLSheetMerge.md)
- [XL.Sheet.TableSize](XLSheetTableSize.md)
- [XL.Sheet.Type](XLSheetType.md)

This function checks for a license.

Created 22nd April 2017 , last changed 22nd April 2017

  
[XL.Sheet.SplitInfo](XLSheetSplitInfo.md) - [XL.Sheet.TableSize](XLSheetTableSize.md)

[HTML Version](XLSheetTable.shtml)