Set columns in Excel to Auto Fit

Version 1.0.0.0 (1.33 KB) by Tal Shir
Set columns in Excel to Auto Fit
1.9K Downloads
Updated 12 Mar 2009

View License

This function will set the selected columns to autofit.
This is the same as using the Excel menu: Format -> Column -> AutoFit Selection .
Example :xlsAutoFitCol('filename','Sheet1','A:F')

Cite As

Tal Shir (2024). Set columns in Excel to Auto Fit (https://www.mathworks.com/matlabcentral/fileexchange/23270-set-columns-in-excel-to-auto-fit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0