# CODE Function

> Return the Windows-1252 code of the first character of a text with the CODE formula function of TX Sheet Control: examples, code 63 and the #VALUE! error.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > CODE Function
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/#see-also)

---

## Nearby

- **Previous:** [CLEAN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/clean/llms.txt)
- **Next:** [COLUMN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/column/llms.txt)
