Skip to content
Sheetwrite

@sheetwrite/core/external-links

breakExternalLinksfunction

Report a problem

On this page

Replace formulas that read the given workbooks with their values, and remove those links. Every formula that reads one of books gets its current value, as Excel's "Break Link" does. An error value becomes its text, such as #N/A. One undoable change. Returns whether the document applied it.

Declaration

function breakExternalLinks(
grid: Grid,
books: readonly string[],
): boolean

Parameters

grid: Gridrequired

The grid whose workbook holds the links.

books: readonly string[]required

Names of the linked workbooks to break; case is ignored.

Returns

boolean

false when the document refused the change.