You don't say what you have used to create the Excel file, so I'll assume that it's Spreadsheet::WriteExcel. The documentation for that module's set_column method says this:
Unfortunately, there is no way to specify "AutoFit" for a column in the Excel file format. This feature is only available at runtime from within Excel.
So it looks like you're out of luck.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: How to set an Excel column to 'AutoFit'
by davorg
in thread How to set an Excel column to 'AutoFit'
by JimRobinson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |