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