# addCellComment

Source: /xlsx-format/api-reference/functions/addcellcomment

Add a comment (note) to a cell.

Initialises the cell's comment array if it does not yet exist, then appends
a new comment entry.

```ts
addCellComment(cell: CellObject, text: string, author?: string): void
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` cell ` | [` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>) | Yes | The cell object to modify |
| ` text ` | ` string ` | Yes | The comment text content |
| ` author ` | ` string ` | No | Optional author name (defaults to "SheetJS") |

## Returns

` void `
