Skip to content

setCellInternalLink

On this page

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

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

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

Parameters

NameTypeRequiredDescription
cellCellObjectYesThe cell object to modify
rangestringYesThe target cell reference or range string (e.g. "Sheet2!A1")
tooltipstringNoOptional tooltip text shown on hover

Returns

CellObject

The same cell object, for chaining