Please, help me to AutoFit Row Height the contents on merge cells with wrap text. On the unmerge cell AutoFit Row Height works perfectly.
Please, help me to AutoFit Row Height the contents on merge cells with wrap text. On the unmerge cell AutoFit Row Height works perfectly.
Last edited by putritersenyum; 04-14-2016 at 07:55 AM.
The following code adds up the column widths of the individually merged cells, unmerges the cell, resets the width of the first cell in the range to the combined width, autofits the row height of the single cell and remerges the cell.
The way I suggest you use this is to make up a macro like Test() and map it to a control key. Then you can select the cell and click on the control combination and the cell will be formatted.
Please Login or Register to view this content.
One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.
A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.
@ dflak, thanks a lot it works well. but please, help me to apply the change automatically without run macro sub (test) manually. And how to apply multiple selections?
Last edited by putritersenyum; 04-14-2016 at 10:35 AM.
I don't think I can make it automatic. To make it apply to multiple selections, try using the following code.
Please Login or Register to view this content.
I have tried for multiple selections, but it didn't work for me.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks