XL.Sheet.GetActiveCell
----------------------

Gets an active cell of the sheet.

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

MBS( "XL.Sheet.GetActiveCell"; BookRef; SheetIndex ) 

**MBS**( **"XL.Sheet.GetActiveCell";** /\* Gets an active cell of the sheet. \*/  
**$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 \*/ 

### 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 |

### Result

Returns list, empty or error.

### Description

Gets an active cell of the sheet.   
Returns row and column as list if an active cell is found otherwise returns empty.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.SetActiveCell](XLSheetSetActiveCell.md)

### Release notes

- **Version 13.1**
    - Added [XL.Sheet.AddSelectionRange](https://www.mbsplugins.eu/XLSheetAddSelectionRange.shtml), [XL.Sheet.GetActiveCell](https://www.mbsplugins.eu/XLSheetGetActiveCell.shtml), [XL.Sheet.RemoveSelection](https://www.mbsplugins.eu/XLSheetRemoveSelection.shtml), [XL.Sheet.SelectionRange](https://www.mbsplugins.eu/XLSheetSelectionRange.shtml) and [XL.Sheet.SetActiveCell](https://www.mbsplugins.eu/XLSheetSetActiveCell.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 13.1pr2](https://www.mbsplugins.de/archive/2023-02-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 3th February 2023 , last changed 3th February 2023

  
[XL.Sheet.FormControlCount](XLSheetFormControlCount.md) - [XL.Sheet.GetCellError](XLSheetGetCellError.md)

[HTML Version](XLSheetGetActiveCell.shtml)