Skip to content

ReplaceSheetReferencesFn

ReplaceSheetReferencesFn = (formula, fromName, toName, workbookName, includeNoWb?) => string

Rewrite the given formula, replacing references to a given sheet with a new sheet name.

string

formula to rewrite

string

existing sheet name to match (case-insensitive)

string

new sheet name to replace fromName with

string

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

boolean

true to replace sheet name in reference prefixes that do not specify a workbook name

string

if formula fails to parse