Skip to content

ReplaceTableReferencesFn

type ReplaceTableReferencesFn = (formula, fromName, toName, workbookName, includeNoWb?) => string;

Rewrite the given formula, replacing a given table name in structured references with a new table name.

string

formula to rewrite

string

existing table name to match (case-insensitive)

string

new table name to replace fromName with

string

workbook name (case-insensitive) in which to replace table references; reference prefixes with a different workbook name will be left unchanged

boolean

true to replace table name in structured references that do not specify a workbook name

string

if formula fails to parse