Question: I have a cell with wrapped text content in Excel and I want to format the cell so that its height will adjust to fit the content which can span over several lines. How can I achieve this behavior?

Answer: 
Note that autofit doesn't work on merged cells. You have to do it manually.

See this Microsoft answer: 

[You cannot use the AutoFit feature for rows or columns that contain merged cells in Excel](http://support.microsoft.com/kb/212010)
A VBA solution is to use the following: 

```
 Call Application.ActiveCell.AutoFit

```