On this page
Point the link of book at another workbook. This is Excel's "Change
Source": formulas that name book name next.book, and the link keeps its
saved values until the next update. One undoable change. Returns whether
the document applied it.
Declaration
function changeExternalLinkSource (
Parameters
The grid whose workbook holds the link.
book : string required
Name of the linked workbook to change; case is ignored.
next : { readonly book: string; readonly target: string; } required
The new workbook's name, as formulas write it, and its location.
Returns
boolean
false when no link has that name or the document refused the change.
interface Grid {
readonly store: Store;
readonly actions: GridActions;
getRuntimeResourceSnapshot(
operation: RuntimeResourceOperation,
phase: RuntimeResourcePhase,
runtime?: RuntimeMemoryObservation,
): RuntimeResourceSnapshot;
getCommandState(command: GridCommandName): GridCommandState;
getFocusCellStyle(): CellStyle;
summarizeSelection(
signal?: AbortSignal,
): Promise<SelectionSummary | null>;
setActiveSheet(id: SheetId): void;
scrollToCell(addr: CellAddress): void;
// … 181 more lines — see the API reference
} interface Grid {
readonly store : Store ;
readonly actions : GridActions ;
getRuntimeResourceSnapshot (
operation: RuntimeResourceOperation ,
phase: RuntimeResourcePhase ,
runtime?: RuntimeMemoryObservation ,
): RuntimeResourceSnapshot ;
getCommandState ( command: GridCommandName ): GridCommandState ;
getFocusCellStyle (): CellStyle ;
summarizeSelection (
signal?: AbortSignal ,
): Promise < SelectionSummary | null >;
setActiveSheet ( id: SheetId ): void ;
scrollToCell ( addr: CellAddress ): void ;
} interface Grid {
readonly store : Store ;
readonly actions : GridActions ;
getRuntimeResourceSnapshot (
operation: RuntimeResourceOperation ,
phase: RuntimeResourcePhase ,
runtime?: RuntimeMemoryObservation ,
): RuntimeResourceSnapshot ;
getCommandState (
command: GridCommandName ,
): GridCommandState ;
getFocusCellStyle (): CellStyle ;
summarizeSelection (
signal?: AbortSignal ,
): Promise < SelectionSummary | null >;
setActiveSheet (
id: SheetId ,
): void ;
scrollToCell (
} Imperative grid handle for document commands, events, rendering, and teardown. See also createGrid, Grid.applyTransaction· Example API reference On this page