# setCellHyperlink

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

Set or remove a hyperlink on a cell.

Pass `undefined` or an empty string for `target` to remove an existing link.

```ts
setCellHyperlink(cell: CellObject, target?: string, tooltip?: string): CellObject
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` cell ` | [` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>) | Yes | The cell object to modify |
| ` target ` | ` string ` | No | The hyperlink URL or path; falsy to remove |
| ` tooltip ` | ` string ` | No | Optional tooltip text shown on hover |

## Returns

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

The same cell object, for chaining
