Autofit Row Height

  • Thread starter Thread starter jkiser
  • Start date Start date
J

jkiser

I cannot seem to get the row height to autofit the contents. I have Excel
2007 and followed the instructions from the help menu....

In Microsoft Office Excel 2007, click the Home tab, click Format in the
Cells group, and then click AutoFit Row Height.

But it does not work and the row height reverts to its default.

Any idea what's going on?
 
Do you have cells set for Wrap Text?

Do you have any merged cells?

These prevent autofit row heights and must be dealt with through VBA event
code.


Gord Dibben MS Excel MVP
 
Yeah.... I have some merged cells with text wrapped in them. I guess that's
the problem.
 
That is the problem.

If you want the event code, post back.


Gord

On Tue, 1 Jun 2010 15:07:01 -0700, jkiser <[email protected]>
wrote:

>Yeah.... I have some merged cells with text wrapped in them. I guess that's
>the problem.
>
>"Gord Dibben" wrote:
>
>> Do you have cells set for Wrap Text?
>>
>> Do you have any merged cells?
>>
>> These prevent autofit row heights and must be dealt with through VBA event
>> code.
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Mon, 31 May 2010 09:35:02 -0700, jkiser
>> <[email protected]> wrote:
>>
>> >I cannot seem to get the row height to autofit the contents. I have Excel
>> >2007 and followed the instructions from the help menu....
>> >
>> >In Microsoft Office Excel 2007, click the Home tab, click Format in the
>> >Cells group, and then click AutoFit Row Height.
>> >
>> >But it does not work and the row height reverts to its default.
>> >
>> >Any idea what's going on?
>>
>> .
>>

Hi, could you please post the code and instruction of how to implement the code, thanks, new to VBA
 
Back
Top