I usually use the following workaround to get past Excel tricks with the AutoFit method:
Before making AutoFit, set the height / width of the row / column to a very large number, for example 50. For example:
range.RowHeight = 50 range.EntireRow.AutoFit
source share