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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,213,560
Messages
6,114,309
Members
448,564
Latest member
ED38

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
Back
Top