XL.Sheet.SetTabColorRGB
-----------------------

Sets the RGB color for the sheet's tab.

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

MBS( "XL.Sheet.SetTabColorRGB"; BookRef; SheetIndex; Red; Green; Blue ) 

**MBS**( **"XL.Sheet.SetTabColorRGB";** /\* Sets the RGB color for the sheet's tab. \*/  
**$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 \*/   
**$Red**; /\* The red color value.  
Range 0 to 255.e.g. 0 \*/   
**$Green**; /\* The green color value.  
Range 0 to 255.e.g. 0 \*/   
**$Blue**) /\* The blue color value.  
Range 0 to 255.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 |
| Red | The red color value.   Range 0 to 255. | 0 |
| Green | The green color value.   Range 0 to 255. | 0 |
| Blue | The blue color value.   Range 0 to 255. | 0 |

### Result

Returns OK or error.

### Description

Sets the RGB color for the sheet's tab.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetTabColor](XLSheetGetTabColor.md)
- [XL.Sheet.GetTabColorRGB](XLSheetGetTabColorRGB.md)
- [XL.Sheet.SetTabColor](XLSheetSetTabColor.md)

### Release notes

- **Version 9.1**
    - Fixed problem with [XL.Sheet.SetTabColorRGB](http://www.mbsplugins.eu/XLSheetSetTabColorRGB.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 9.1pr3](https://www.mbsplugins.de/archive/2019-02-18/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[XL.Sheet.SetTabColor](XLSheetSetTabColor.md) - [XL.Sheet.SetTopLeftView](XLSheetSetTopLeftView.md)

[HTML Version](XLSheetSetTabColorRGB.shtml)