# Cell.setInput Method

> Cell.setInput method in the TX Sheet Control TypeScript API for the browser: Parse entered content like typing in the editor.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > Cell > Cell.setInput Method
- **486 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/setinput-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/setinput-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/setinput-method/llms-full.txt

---

Parse entered content like typing in the editor.

Owner: [Cell](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
setInput(input: string): Cell
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `input` | `string` | No | Entered content, parsed using the editor input rules. |

### Return Value

`Cell`.

This handle for fluent operations.

### Exceptions

| Exception | Condition |
|---|---|
| `RangeError` | The address, scope or handle is invalid or stale. |

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';

function applyCellSetInput(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('B8:B9').setValues([[120], [80]]);

    const cell = sheet.cell('B10');
    cell.setFormula('=SUM(B8:B9)');

    const result = cell.setInput('120');
    return result;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [Cell Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [Cell.setHyperlink Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/sethyperlink-method/llms-full.txt)
- **Next:** [Cell.setInputs Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/setinputs-method/llms-full.txt)
