XL.Table.ColumnSize
-------------------

Returns the number of columns in the table.

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

MBS( "XL.Table.ColumnSize"; BookRef; SheetIndex; TableIndex ) 

**MBS**( **"XL.Table.ColumnSize";** /\* Returns the number of columns in the table. \*/  
**$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 \*/   
**$TableIndex**) /\* The name of the table or the zero based index.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 |
| TableIndex | The name of the table or the zero based index. | 0 |

### Result

Returns number or error.

### Description

Returns the number of columns in the table.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th April 2025 , last changed 5th April 2025

  
[XL.Sheet.Type](XLSheetType.md) - [XL.Table.GetColumnName](XLTableGetColumnName.md)

[HTML Version](XLTableColumnSize.shtml)