Engine: a name given when a recording stops never replaces an existing macro

Stopping a recording with a name that a macro already has (in any case) saved over that macro's
steps, inputs and description, with only Undo to get them back. A taken name now gets a suffix
("Tidy (2)"), and the save passes replace: false as a backstop.
This commit is contained in:
prxnvt
2026-10-22 02:26:33 -04:00
parent 20eb282e75
commit 3f5f6ea4f1
3 changed files with 21 additions and 4 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ of the step that just ran, and the cells changed so far.
## Recording
`macro.record` toggles recording (`relative: false` for absolute references; `name` and
`description` when stopping). The macro is saved in the workbook where recording started, even if
`description` when stopping; a name that another macro has gets a suffix, such as `Tidy (2)`, so
stopping never replaces a macro). The macro is saved in the workbook where recording started, even if
another one is active; if that workbook was closed, stopping ends the recording without saving it.
When saving the recording fails (a name the check refuses, a workbook at its macro limit),
recording goes on, so stopping again keeps what was recorded. With relative references the