---
title: "Auto Fit Columns"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/excel/autofitcolumns
markdown: https://docs.nodetool.ai/nodes/lib/excel/autofitcolumns.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/excel/autofitcolumns.md
---

# Auto Fit Columns

**Type:** `lib.excel.AutoFitColumns`

**Namespace:** `lib.excel`

## Description

Automatically adjusts column widths to fit content.
    excel, format, columns

    Use cases:
    - Improve spreadsheet readability
    - Professional presentation

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| workbook | `excel` | The Excel workbook to format | `{"type":"excel","uri":"","asset_id":null,"data"...` |
| sheet_name | `str` | Target worksheet name | `Sheet1` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `any` |  |

## Related Nodes

Browse other nodes in the [lib.excel](./) namespace.
