XL.Sheet.SetRowHidden
---------------------

Hides or shows a row.

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

MBS( "XL.Sheet.SetRowHidden"; BookRef; SheetIndex; Row; Hidden ) 

**MBS**( **"XL.Sheet.SetRowHidden";** /\* Hides or shows a row. \*/  
**$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 \*/   
**$Row**; /\* The row index to set.e.g. 0 \*/   
**$Hidden**) /\* Pass 1 to hide row or 0 to show row.e.g. 1 \*/ 

### 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 |
| Row | The row index to set. | 0 |
| Hidden | Pass 1 to hide row or 0 to show row. | 1 |

### Result

Returns OK or error message.

### Description

Hides or shows a row.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetColHidden](XLSheetGetColHidden.md)
- [XL.Sheet.GetHidden](XLSheetGetHidden.md)
- [XL.Sheet.GetRowHeight](XLSheetGetRowHeight.md)
- [XL.Sheet.GetRowHidden](XLSheetGetRowHidden.md)
- [XL.Sheet.SetColHidden](XLSheetSetColHidden.md)
- [XL.Sheet.SetHidden](XLSheetSetHidden.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[XL.Sheet.SetRow](XLSheetSetRow.md) - [XL.Sheet.SetRowPx](XLSheetSetRowPx.md)

[HTML Version](XLSheetSetRowHidden.shtml)