Set Cells
set_cellsWrite multiple Excel cells in one atomic operation, resolving all addresses first to prevent partial writes. Supports formulas, auto-backup, and safe refusal when data loss would occur.
Instructions
Write many individually addressed cells as ONE atomic batch, the scatter complement to write_range. cells is a list of {cell, value} items (cell is an A1 string or a location object resolving to one cell; 1,000-cell ceiling); every address is resolved BEFORE anything is written, so one bad item refuses the whole batch untouched. '=' strings become formulas, normalized. A hazardous workbook refuses unless allow_loss is true. Auto-backup to .ks4xl-backups; atomic verified save. Refuses while open in Excel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| cells | Yes | Scatter writes, {cell, value}; every address resolves before anything is written. | |
| sheet | No | ||
| backup | No | ||
| allow_loss | No | ||
| verify_com | No |