XL.Table.SetStyle
-----------------

Sets the table style.

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

MBS( "XL.Table.SetStyle"; BookRef; SheetIndex; TableIndex; Style ) 

**MBS**( **"XL.Table.SetStyle"** /\* Sets the table style. \*/  
**$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 \*/   
**$Style**) /\* The new style value.  
  
See the style table here to see what constant name has what look:  
https://www.libxl.com/table.html \*/ 

### 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 |
| Style | The new style value.      See the style table here to see what constant name has what look:   https://www.libxl.com/table.html |  |

### Result

Returns OK or error.

### Description

Sets the table style.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Table.GetStyle](XLTableGetStyle.md)
- [XL.Table.SetName](XLTableSetName.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.Table.SetShowRowStripes](XLTableSetShowRowStripes.md) - [XL.Uninitialize](XLUninitialize.md)

[HTML Version](XLTableSetStyle.shtml)