XL.ConditionalFormat.SetPatternBackgroundColor
----------------------------------------------

Sets the background color of the fill pattern.

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

MBS( "XL.ConditionalFormat.SetPatternBackgroundColor"; BookRef; ConditionalFormatRef; Value ) 

**MBS**( **"XL.ConditionalFormat.SetPatternBackgroundColor";** /\* Sets the background color of the fill pattern. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$ConditionalFormatRef**; /\* The reference number for the conditional format.e.g. $ConditionalFormat \*/   
**$Value**) /\* The new color value.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| ConditionalFormatRef | The reference number for the conditional format. | $ConditionalFormat |
| Value | The new color value. | 10 |

### Result

Returns OK or error.

### Description

Sets the background color of the fill pattern.  
### See also

- [XL.Book.AddConditionalFormat](XLBookAddConditionalFormat.md)
- [XL.ConditionalFormat.GetPatternBackgroundColor](XLConditionalFormatGetPatternBackgroundColor.md)
- [XL.ConditionalFormat.GetPatternForegroundColor](XLConditionalFormatGetPatternForegroundColor.md)
- [XL.ConditionalFormat.SetPatternForegroundColor](XLConditionalFormatSetPatternForegroundColor.md)
- [XL.ConditionalFormating.AddOpNumRule](XLConditionalFormatingAddOpNumRule.md)
- [XL.ConditionalFormating.AddRule](XLConditionalFormatingAddRule.md)
- [XL.Sheet.AddConditionalFormatting](XLSheetAddConditionalFormatting.md)

### Example Databases

- [XL/Conditional Formatting](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/Conditional%20Formatting.shtml#3ScriptAnchor_)

### Blog Entries

- [Conditional Formatting in Excel exports from FileMaker](https://www.mbsplugins.de/archive/2024-04-08/Conditional_Formatting_in_Exce/monkeybreadsoftware_blog_filemaker)

Created 30th March 2024 , last changed 30th March 2024

  
[XL.ConditionalFormat.SetNumFormat](XLConditionalFormatSetNumFormat.md) - [XL.ConditionalFormat.SetPatternForegroundColor](XLConditionalFormatSetPatternForegroundColor.md)

[HTML Version](XLConditionalFormatSetPatternBackgroundColor.shtml)