# CommentCreated Event

> Occurs when a new comment has been created in the document; the CommentId parameter passes the Long identifier of the comment that was created.

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

---

Occurs when a comment has been created.

Introduced: 30.0.

### Syntax

```vbscript
CommentCreated(CommentId)
```

### Parameters

| Parameter | Description |
|---|---|
| CommentId | Is the identifier of the comment that has been created. |

### Data Types

| Name | Data type |
|---|---|
| CommentId | Long |

### See Also

- [Programming Category: Commenting a document](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/comments/llms-full.txt)

---

## Nearby

- **Previous:** [CommentChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentchanged-event/llms-full.txt)
- **Next:** [CommentCreationTime Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/commentcreationtime-property/llms-full.txt)
