XL.Sheet.CellWriteTextAsNumber
------------------------------

Writes a number into cell, but passes it as text.

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

MBS( "XL.Sheet.CellWriteTextAsNumber"; BookRef; SheetIndex; Row; Column; Value { ; Format } ) 

**MBS**( **"XL.Sheet.CellWriteTextAsNumber";** /\* Writes a number into cell, but passes it as text. \*/  
**$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 \*/   
**$Row**; /\* The row for the cell. First row has index 0. \*/   
**$Column**; /\* The column for the cell. First column has index 0. \*/   
**$Value**; /\* The new value to write.e.g. "123" \*/   
**$Format**) /\* Optional; The format for the cell. This is index from 0 to XL.GetFormatCount-1 in the book's list of formats.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| 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 |  |
| Row | The row for the cell. First row has index 0. | $row |  |
| Column | The column for the cell. First column has index 0. | $column |  |
| Value | The new value to write. | "123" |  |
| Format | The format for the cell. This is index from 0 to XL.GetFormatCount-1 in the book's list of formats. | 0 | Optional |

### Result

Returns OK or error.

### Description

Writes a number into cell, but passes it as text.  
Avoids rounding errors with passing number as floating point value.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.CellWriteFormulaNumber](XLSheetCellWriteFormulaNumber.md)
- [XL.Sheet.CellWriteNumber](XLSheetCellWriteNumber.md)
- [XL.Sheet.CellWriteNumbers](XLSheetCellWriteNumbers.md)

### Release notes

- **Version 10.3**
    - Added [XL.Sheet.CellWriteTextAsNumber](https://www.mbsplugins.eu/XLSheetCellWriteTextAsNumber.shtml), [XL.Sheet.GetFirstFilledCol](https://www.mbsplugins.eu/XLSheetGetFirstFilledCol.shtml), [XL.Sheet.GetFirstFilledRow](https://www.mbsplugins.eu/XLSheetGetFirstFilledRow.shtml), [XL.Sheet.GetLastFilledCol](https://www.mbsplugins.eu/XLSheetGetLastFilledCol.shtml) and [XL.Sheet.GetLastFilledRow](https://www.mbsplugins.eu/XLSheetGetLastFilledRow.shtml) functions.

### Blog Entries

- [What is new in the MBS FileMaker Plugin Version 10.3](https://www.mbsplugins.de/archive/2020-07-31/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr1](https://www.mbsplugins.de/archive/2020-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th May 2020 , last changed 26th May 2020

  
[XL.Sheet.CellWriteText](XLSheetCellWriteText.md) - [XL.Sheet.CellWriteTexts](XLSheetCellWriteTexts.md)

[HTML Version](XLSheetCellWriteTextAsNumber.shtml)