XL.FormControl.SetFmlaLink
--------------------------

Sets the cell reference is linked to.

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

MBS( "XL.FormControl.SetFmlaLink"; BookRef; SheetIndex; FormControlIndexOrName; LInk ) 

**MBS**( **"XL.FormControl.SetFmlaLink";** /\* Sets the cell reference is linked to. \*/  
**$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 \*/   
**$FormControlIndexOrName**; /\* The index or name of the from control.  
Index ranges from 0 to [XL.Sheet.FormControlCount](XLSheetFormControlCount.md) - 1.e.g. $formControlIndex \*/   
**$LInk**) /\* The new link value. \*/ 

### 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 |
| FormControlIndexOrName | The index or name of the from control.   Index ranges from 0 to [XL.Sheet.FormControlCount](XLSheetFormControlCount.md) - 1. | $formControlIndex |
| LInk | The new link value. |  |

### Result

Returns OK or error.

### Description

Sets the cell reference is linked to.  
Only applies to check boxes, radio buttons, scroll bars, spin boxes, drop-downs and list boxes.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.FormControl.GetFmlaGroup](XLFormControlGetFmlaGroup.md)
- [XL.FormControl.GetFmlaLink](XLFormControlGetFmlaLink.md)
- [XL.FormControl.GetFmlaRange](XLFormControlGetFmlaRange.md)
- [XL.FormControl.GetFmlaTxbx](XLFormControlGetFmlaTxbx.md)
- [XL.FormControl.SetDropLines](XLFormControlSetDropLines.md)
- [XL.FormControl.SetFmlaRange](XLFormControlSetFmlaRange.md)
- [XL.FormControl.SetFmlaTxbx](XLFormControlSetFmlaTxbx.md)
- [XL.FormControl.SetMin](XLFormControlSetMin.md)
- [XL.Sheet.FormControlCount](XLSheetFormControlCount.md)

### 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)

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

  
[XL.FormControl.SetFmlaGroup](XLFormControlSetFmlaGroup.md) - [XL.FormControl.SetFmlaRange](XLFormControlSetFmlaRange.md)

[HTML Version](XLFormControlSetFmlaLink.shtml)