This script is part of the Tables collection. See the full collection here.
InDesign’s table cells adjust automatically to their content vertically, but not horizontally. This script sizes columns, snapping them to their widest content.
To use the script, click anywhere in a table and run it. The script has no interface.
Version history
Latest update 25 Jan. 2026
Peter Kahrel Script Repository
Hosted as a community service, and with deep appreciation, by CreativePro.com
Scripts by Topic | Script Index
Basic Script Installation and Use
How to Modify or Configure These Scripts
Resources for Scripting and Publishing Automation
About This Repository
Contact Peter Kahrel
Note to users: You run scripts at your own risk: CreativePro and the author accept no liability for anything that may be caused by any of these scripts. Always take the necessary precautions. We encourage you to save backups and test scripts on copies of your documents.
This article was last modified on August 22, 2026
This article was first published on November 3, 2025
Commenting is easier and faster when you're logged in!
Recommended for you
A Closer Look at Check Spelling
Take the deep dive into the sometimes mysterious inner workings of InDesign's Ch...
Big Problem with FindChangeByList (and an easy fix)
The FindChangeByList script is a marvel, and I’ve used it many times to clean up...
Point Editor
InDesign's drawing tools are pretty good, but handling Bézier curves can be fidd...
