Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells supports this feature through the AutoFitterOptions API. Using this API, it is possible to AutoFit rows in a worksheet, including merged cells.
After executing the code, Aspose.Cells AutoFits rows for merged cells.
Output Excel file

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