Fit columns

Hi,

when exporting data to excel I want to be able to fit the columns to the maximum size needed to fit values for each column. Is there a way to do so?

Regards,
Michael

Hi Michael,

Please try to use Worksheet.AutoFitColumn method.

Hi Laurence,

thanks for your reply. Sometimes it’s better to read the documentation carefully before asking questions Wink