XL.Book.FormatCount
-------------------

Returns a number of formats in this book.

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

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

**MBS**( **"XL.Book.FormatCount";** /\* Returns a number of formats in this book. \*/  
**$BookRef**) /\* The reference number for the workbook.e.g. $ref \*/ 

### Parameters

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

### Result

Returns number or error.

### Description

Returns a number of formats in this book.  
### Examples

Query format count:

 Set Variable \[ $FormatCount ; Value: MBS ( "XL.Book.FormatCount"; $book ) \]  
### See also

- [XL.Book.FontCount](XLBookFontCount.md)
- [XL.Book.SheetCount](XLBookSheetCount.md)

This function checks for a license.

Created 18th August 2014 , last changed 19th April 2020

  
[XL.Book.FontCount](XLBookFontCount.md) - [XL.Book.GetActiveSheet](XLBookGetActiveSheet.md)

[HTML Version](XLBookFormatCount.shtml)