xlWorkSheet.Range(xlWorkSheet.Cells(i, 1), xlWorkSheet.Cells(i, 10)).ColumnWidth = AutoSize
for..next
xlWorkSheet.Range("A:F").Columns.AutoFit() 'or 'xlWorkSheet.Columns("A:F").AutoFit()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)