set_cell
Set a single cell in an Excel workbook by location, accepting numbers, text, booleans, or formulas. Uses verified saves with backup to prevent data loss.
Instructions
Write a single cell addressed by a location object. A string beginning with '=' is ALWAYS stored as a formula (there is no literal escape), normalized so modern functions do not land as #NAME? and flagged to recalculate on open; anything else is a literal. A hazardous workbook refuses unless allow_loss is true. Auto-backup: prev/anchor slots in .ks4xl-backups (backup=false skips rotation); atomic verified save, restored on failed verify. Refuses while open in Excel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet | No | ||
| value | Yes | A cell value: text, a number, a boolean, or null to clear. A string beginning with '=' is stored as a formula. | |
| backup | No | ||
| location | Yes | ||
| allow_loss | No | ||
| verify_com | No |