Use the Range.AutoFit function to make the columns fit automatically to the longest content. MSDN states:
The expression must be a row or a range of rows, or a column or a range of columns.
range.EntireColumn.AutoFit();
range.EntireRow.AutoFit();
Detailed examples could be found in this SO post and in this MSDN forum.