XL.Sheet.GetMerge
-----------------

Gets merged cells for cell at row, col.

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

MBS( "XL.Sheet.GetMerge"; BookRef; SheetIndex; Row; Column; Selector ) 

**MBS**( **"XL.Sheet.GetMerge";** /\* Gets merged cells for cell at row, col. \*/  
**$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 for the cell. First row has index 0. \*/   
**$Column**; /\* The column for the cell. First column has index 0. \*/   
**$Selector**) /\* Which value to return: rowFirst, rowLast, colFirst or colLast.e.g. "colLast" \*/ 

### 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 for the cell. First row has index 0. | $row |
| Column | The column for the cell. First column has index 0. | $column |
| Selector | Which value to return: rowFirst, rowLast, colFirst or colLast. | "colLast" |

### Result

Returns value or error.

### Description

Gets merged cells for cell at row, col.   
Result is returned for selector values: rowFirst, rowLast, colFirst, colLast.   
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetHeader](XLSheetGetHeader.md)
- [XL.Sheet.GetHidden](XLSheetGetHidden.md)
- [XL.Sheet.GetPaper](XLSheetGetPaper.md)
- [XL.Sheet.GetText](XLSheetGetText.md)
- [XL.Sheet.GetVCenter](XLSheetGetVCenter.md)
- [XL.Sheet.Merge](XLSheetMerge.md)
- [XL.Sheet.SetBorder](XLSheetSetBorder.md)
- [XL.Sheet.SetHeader](XLSheetSetHeader.md)
- [XL.Sheet.SetMerge](XLSheetSetMerge.md)

This function checks for a license.

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

  
[XL.Sheet.GetMarginTop](XLSheetGetMarginTop.md) - [XL.Sheet.GetName](XLSheetGetName.md)

[HTML Version](XLSheetGetMerge.shtml)