Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
You can autofit columns and rows while loading your HTML file inside the Workbook object. Please set the HtmlLoadOptions.AutoFitColsAndRows property to true for this purpose.
The following sample code first loads the sample HTML into a Workbook without any load options and saves it in XLSX format. It then loads the sample HTML into a Workbook again, this time after setting the HtmlLoadOptions.AutoFitColsAndRows property to true, and saves it in XLSX format. Please download both output Excel files, i.e., Output Excel File Without AutoFitColsAndRows and Output Excel File With AutoFitColsAndRows. The following screenshot shows the effect of HtmlLoadOptions.AutoFitColsAndRows property on both output Excel files.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.