XL.ConditionalFormat.SetBorderTopColor
--------------------------------------

Sets the color of the top border.

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

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

**MBS**( **"XL.ConditionalFormat.SetBorderTopColor";** /\* Sets the color of the top border. \*/  
**$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.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. | 10 |

### Result

Returns OK or error.

### Description

Sets the color of the top border.  
### See also

- [XL.ConditionalFormat.GetBorderTop](XLConditionalFormatGetBorderTop.md)
- [XL.ConditionalFormat.GetBorderTopColor](XLConditionalFormatGetBorderTopColor.md)
- [XL.ConditionalFormat.SetBorderBottom](XLConditionalFormatSetBorderBottom.md)
- [XL.ConditionalFormat.SetBorderBottomColor](XLConditionalFormatSetBorderBottomColor.md)
- [XL.ConditionalFormat.SetBorderColor](XLConditionalFormatSetBorderColor.md)
- [XL.ConditionalFormat.SetBorderLeft](XLConditionalFormatSetBorderLeft.md)
- [XL.ConditionalFormat.SetBorderLeftColor](XLConditionalFormatSetBorderLeftColor.md)
- [XL.ConditionalFormat.SetBorderRight](XLConditionalFormatSetBorderRight.md)
- [XL.ConditionalFormat.SetBorderRightColor](XLConditionalFormatSetBorderRightColor.md)
- [XL.ConditionalFormat.SetBorderTop](XLConditionalFormatSetBorderTop.md)

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

  
[XL.ConditionalFormat.SetBorderTop](XLConditionalFormatSetBorderTop.md) - [XL.ConditionalFormat.SetCustomNumFormat](XLConditionalFormatSetCustomNumFormat.md)

[HTML Version](XLConditionalFormatSetBorderTopColor.shtml)