+AutoFitColWidth provides a function to auto fit columns width according to their text content with font format. Not that this function calculates the width of the text approximately based on the font format, currently does not support merged cells. the actual width may be different when you open the workbook in Office applications. This process can be relatively slow on large worksheets, so this should normally only be called once per column, at the end of your processing. For example, auto fit column width for column `D` on `Sheet1`:
0 commit comments