XL.Sheet.SetActiveCell
----------------------

Sets 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.SetActiveCell"; BookRef; SheetIndex; Row; Column ) 

**MBS**( **"XL.Sheet.SetActiveCell";** /\* Sets 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 \*/   
**$Row**; /\* The row for the cell. First row has index 0. \*/   
**$Column**) /\* The column for the cell. First column has index 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 |
| Row | The row for the cell. First row has index 0. | $row |
| Column | The column for the cell. First column has index 0. | $column |

### Result

Returns OK or error.

### Description

Sets an active cell of the sheet.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetActiveCell](XLSheetGetActiveCell.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

- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [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.SelectionRange](XLSheetSelectionRange.md) - [XL.Sheet.SetAutoFitArea](XLSheetSetAutoFitArea.md)

[HTML Version](XLSheetSetActiveCell.shtml)