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?
|
|
If it doesn't automatically do it, then place your cursor over the small line between row numbers (ex: between 1 and 2) and double click, this will resize the row (directly above the small line, in the example: 1) so that everything is visible (from a vertical aspect). |
|||
|
|
|
From http://support.microsoft.com/kb/149663 To adjust the height of the row to fit all the text in a cell, follow these steps: Select the row.
Also Works when all the rows are selected |
|||
|
|
|
Try
|
|||||||||||
|
|
Do you know macro? Put the following code in
inside your Worksheet_SelectionChange subroutine. |
|||
|
|
|
The only way I can get it to work as expected is to highlight the whole sheet with CTRL-A, unclick the "Wrap Text" button in the toolbar, then re-select it. No other settings change, but each row is now the "proper" height for its contents. |
|||
|
|
