# ObjectCreated Event

> Occurs when a new object is created by loading a document or pasting from the clipboard, but not after ObjectInsert, ObjectInsertFixed or ObjectInsertAsChar.

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

---

This event specifies that a new object has been created. This can happen when a document that contains objects, is loaded or when an object is pasted from the clipboard. This event does not occur after inserting a new object with the [ObjectInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectinsert-method/llms-full.txt), [ObjectInsertFixed](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectinsertfixed-method/llms-full.txt) or [ObjectInsertAsChar](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectinsertaschar-method/llms-full.txt) methods.

### Syntax

```vbscript
ObjectCreated(ObjectId)
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectId | Is the identifier of the object that has been created. |

### Data Types

| Name | Data type |
|---|---|
| ObjectId | Integer |

### Remarks

The value of the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property is updated with the identifier given through the ObjectId parameter.

### See Also

- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ObjectClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectclicked-event/llms-full.txt)
- **Next:** [ObjectCurrent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt)
