XL.Book.IsWriteProtected
------------------------

Queries whether the workbook is marked as read-only.

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

MBS( "XL.Book.IsWriteProtected"; BookRef ) 

**MBS**( **"XL.Book.IsWriteProtected";** /\* Queries whether the workbook is marked as read-only. \*/  
**$BookRef**) /\* The reference number for the workbook.e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |

### Result

Returns 1, 0 or error.

### Description

Queries whether the workbook is marked as read-only.  
Returns 1 if the book is writes protected or 0 if otherwise.  
### Release notes

- **Version 13.1**
    - Added [XL.Book.IsWriteProtected](https://www.mbsplugins.eu/XLBookIsWriteProtected.shtml), [XL.Sheet.DefaultRowHeight](https://www.mbsplugins.eu/XLSheetDefaultRowHeight.shtml), [XL.Sheet.GetTabColor](https://www.mbsplugins.eu/XLSheetGetTabColor.shtml), [XL.Sheet.GetTabColorRGB](https://www.mbsplugins.eu/XLSheetGetTabColorRGB.shtml) and [XL.Sheet.SetDefaultRowHeight](https://www.mbsplugins.eu/XLSheetSetDefaultRowHeight.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)

This function checks for a license.

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

  
[XL.Book.IsTemplate](XLBookIsTemplate.md) - [XL.Book.MoveSheet](XLBookMoveSheet.md)

[HTML Version](XLBookIsWriteProtected.shtml)