ReplaceWorkbookReferencesFn
type ReplaceWorkbookReferencesFn = (formula, fromWorkbookName, toWorkbookName) => string;Rewrite the given formula, replacing references to a given workbook with a new workbook name.
Parameters
Section titled “Parameters”formula
Section titled “formula”string
formula to rewrite
fromWorkbookName
Section titled “fromWorkbookName”string
existing workbook name to match (case-insensitive)
toWorkbookName
Section titled “toWorkbookName”string
new workbook name to replace fromWorkbookName with
Returns
Section titled “Returns”string
Throws
Section titled “Throws”if formula fails to parse
Throws
Section titled “Throws”if Waspiary refuses the rewrite, as for a name it cannot write a reference to