write_range
Write a rectangular block of values and formulas into an Excel sheet at a specified cell, leaving surrounding content untouched, with automatic backup and verified save.
Instructions
Write a 2D block of values and formulas anchored at the location's top-left cell. data is a list of row lists and must be RECTANGULAR: ragged rows refuse (pad short rows with null, which clears those cells); content outside the block is never touched. Formula strings ('=...') are normalized and flag recalculation. Grid limits and the 200,000-cell write ceiling apply. 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 |
|---|---|---|---|
| data | Yes | Rows of cell values, rectangular: every row the same length. | |
| path | Yes | ||
| sheet | No | ||
| backup | No | ||
| location | Yes | ||
| allow_loss | No | ||
| verify_com | No |