Skip to content
Sheetwrite

@sheetwrite/core/external-links

externalSheetTextfunction

Report a problem

On this page

[book]sheet, in quotes when either part needs them, as Excel writes it before !. Without a sheet, the book alone, as Excel writes it before a defined name of that workbook: Budget.xlsx in Budget.xlsx!Total.

Declaration

function externalSheetText(book: string, sheet: string): string

Parameters

book: stringrequired

The workbook's file name, such as Budget.xlsx.

sheet: stringrequired

The sheet name, or "" for the book alone.

Returns

string

The text to write before !, such as [Budget.xlsx]Q1 or '[Budget 2024.xlsx]Q1'.