Autofit Columns
autofit_columnsAdjust column widths to fit content in an open Excel workbook, for a specified range or the entire used range.
Instructions
Autofit column widths for a range, or the sheet's used range if none given.
Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). range_address: A1-style address (None = the sheet's used range).
Returns: JSON confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| workbook | No | ||
| range_address | No |