Autofit Row Height when sorting

New Contributor

When a worksheet contains rows with different heights, I would expect those heights to be automatically adjusted during a sort of the rows in that sheet.  Alas, this appears to not be the case (At least I haven't been able to make that happen).  Can I make that happen?

5 Replies


You can manually adjust the column width or row height or automatically resize columns and rows to fit the data.

Change the column width or row height in Excel


Additional Information:

Change the column width and row height


Hope I was able to help you with this info.



I know I don't know anything (Socrates)



Thanks for your help. I guess I'm just to lazy to want to do it manually.


Here automatic adjustment with VBA on all cells
See the attached file with examples where you can try it out yourself.

Enjoy excel

I experimented on an excel worksheet with rows of different heights and inserted a variety of objects (pictures, text boxes, etc,) and, sure enough, when I resorted the rows, autofit did not function. I also tried reformatting the objects . . . no luck! I'm satisfied. Thanks for looking at this with me.


I am pleased that you are satisfied, I hope to see you again in the future here in the forum.
Welcome to your Excel discussion space!


Also wish you have fun with Excel.