XL.Sheet.RemoveSelection
------------------------

Removes all selection.

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

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

**MBS**( **"XL.Sheet.RemoveSelection";** /\* Removes all selection. \*/  
**$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 OK or error.

### Description

Removes all selection.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.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.RemoveRow](XLSheetRemoveRow.md) - [XL.Sheet.RightToLeft](XLSheetRightToLeft.md)

[HTML Version](XLSheetRemoveSelection.shtml)