write_excel_rows
Write a rectangular block of rows to an Excel file, starting at a specified cell. Overwrites existing cells in the target range.
Instructions
Write a rectangular block of rows starting at start_cell.
Efficient for tabular data: pass a list of rows, each a list of values. Existing cells in the target range are overwritten; cells outside it are untouched. The save is atomic.
@param file_path: Absolute path to the .xlsx/.xlsm file. @param rows: List of rows, each a list of cell values. @param sheet_name: Target sheet. None = first sheet. @param start_cell: Top-left coordinate of the block (default "A1"). @return: Confirmation with the written range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| file_path | Yes | ||
| sheet_name | No | ||
| start_cell | No | A1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |