Follow a block of cells cut and pasted on the formula's own sheet, as
Excel's Cut and Paste moves the references of a formula: a reference to a
moved cell follows it, one to a cell the block lands on becomes #REF!.
A conditional-format rule that moves with the block uses it.
Declaration
function moveFormulaCells( source: string, row: number, col: number, rows: number, cols: number, to_row: number, to_col: number, shift: boolean,): stringParameters
source: stringrequiredFormula text on the sheet of the moved block.
row: numberrequiredZero-based first row of the block before the move.
col: numberrequiredZero-based first column of the block before the move.
rows: numberrequiredRows in the block.
cols: numberrequiredColumns in the block.
to_row: numberrequiredZero-based first row of the block after the move.
to_col: numberrequiredZero-based first column of the block after the move.
shift: booleanrequiredtrue for Excel's Insert or Delete with Shift cells: references follow the rule of inserted and deleted cells.
Returns
stringThe formula with its references adjusted; the text unchanged when it can't be read as a formula.
Referenced by
Public exports naming moveFormulaCells
InitOutput@sheetwrite/formulasInitOutput@sheetwrite/wasm