XL.Sheet.FormControlCount
-------------------------

Queries number of form controls.

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

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

**MBS**( **"XL.Sheet.FormControlCount";** /\* Queries number of form controls. \*/  
**$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 number or error.

### Description

Queries number of form controls.  
Returns a number of form controls in this worksheet (only for xlsx files).  
### See also

- [XL.FormControl.SetChecked](XLFormControlSetChecked.md)
- [XL.FormControl.SetDropLines](XLFormControlSetDropLines.md)
- [XL.FormControl.SetFirstButton](XLFormControlSetFirstButton.md)
- [XL.FormControl.SetFmlaRange](XLFormControlSetFmlaRange.md)
- [XL.FormControl.SetFmlaTxbx](XLFormControlSetFmlaTxbx.md)
- [XL.FormControl.SetHoriz](XLFormControlSetHoriz.md)
- [XL.FormControl.SetInc](XLFormControlSetInc.md)
- [XL.FormControl.SetMax](XLFormControlSetMax.md)
- [XL.FormControl.SetMin](XLFormControlSetMin.md)
- [XL.FormControl.SetSel](XLFormControlSetSel.md)

### Release notes

- **Version 13.1**
    - Added 45 new functions for [XL](https://www.mbsplugins.eu/component_XL.shtml) functions to work on form controls and [XL.Sheet.FormControlCount](https://www.mbsplugins.eu/XLSheetFormControlCount.shtml) function.

### Blog Entries

- [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.Sheet.DeleteNamedRange](XLSheetDeleteNamedRange.md) - [XL.Sheet.GetActiveCell](XLSheetGetActiveCell.md)

[HTML Version](XLSheetFormControlCount.shtml)