Auto Row Height with Merged Cells

sealions

New Member
Joined
Sep 5, 2002
Messages
19
I'm having a problem getting excel to do auto row height adjustments if the row contains merged cells. Normally, if WORD WRAP is set for a cell, if you enter more text then can fit with the current row height, then Excel increases the row height automatically to contain the cell text. However, if you merge 2 cells together, enable WORD WRAP for the merged cell, and enter more text then will fit, Excel DOES NOT adjust row height automatically. Does any know why Excel behaves differently if the cell is MERGED ? Is there any way to get Excel to automatically adjust the row height for WORD WRAP text in a merged cell ?

If there is no way to automatically have Excel set the row height, is it possible to do it programmatically ? Obviously, there is the ROWHEIGHT & HEIGHT properties available that can change the height of a row range. But the problem is, how can you determine exactly what height to set it to ? Is there a method available somewhere that will return the row height necessary to contain a set of text in a merged cell with a particular width ?

Any help would be appreciated.

Thanks,
Chris
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,636
Messages
5,838,493
Members
430,550
Latest member
jmort

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top