When calling AutoFitWidth on single cell selections there is no issue. However, calling it on a multi-column selection the document is corrupted and repair error message is shown when opening it in Excel. Workaround: The AutoFitWidth method may be called for each column separately.