add_excel_sheet
Add a new empty sheet to an existing Excel workbook, specifying the sheet name and optional insertion position.
Instructions
Add a new empty sheet to an existing workbook.
@param file_path: Absolute path to the .xlsx/.xlsm file. @param sheet_name: Name for the new sheet; must not already exist. @param position: 0-based index to insert at. None = append at the end. @return: Confirmation with the updated sheet list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |