# TableCreated Event

> Occurs after a table has been created by pasting from the clipboard, not by TableInsert or loading; the handler can assign an ID from 10 to 32,767.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TableCreated Event
- **299 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecreated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecreated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecreated-event/llms-full.txt

---

Occurs after a new table has been created as a result of a text insertion via the clipboard. It does not occur when the table is inserted with the [TableInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsert-method/llms-full.txt) method or when a previously saved document is reloaded.

### Syntax

```vbscript
TableCreated(TableId, NewTableId)
```

### Parameters

| Parameter | Description |
|---|---|
| TableId | Is the number of the created table. This number can be changed through setting the NewTableId parameter. |
| NewTableId | Is a new table identifier for the created table. It must be in the range of 10 to 32,767. |

### Data Types

| Name | Data type |
|---|---|
| TableId | Integer |
| NewTableId | Integer |

### See Also

- [Formatting Text by using Number Formats](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/number-formats/llms-full.txt)
- [Tables](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/llms-full.txt)
- [Using Formulas in Table Cells](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/formulas/llms-full.txt)
- [TableDeleted Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeleted-event/llms-full.txt)
- [TableInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsert-method/llms-full.txt)
- [Programming Category: Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt)

---

## Nearby

- **Previous:** [TableColumns Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecolumns-property/llms-full.txt)
- **Next:** [TableDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/llms-full.txt)
