# setCellInternalLink

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

Set an internal (within-workbook) link on a cell.

Internal links are prefixed with "#" to distinguish them from external URLs.

```ts
setCellInternalLink(cell: CellObject, range: string, tooltip?: string): CellObject
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` cell ` | [` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>) | Yes | The cell object to modify |
| ` range ` | ` string ` | Yes | The target cell reference or range string (e.g. "Sheet2!A1") |
| ` tooltip ` | ` string ` | No | Optional tooltip text shown on hover |

## Returns

[` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>)

The same cell object, for chaining
