View Single Post
  #3  
Old April 28th, 2010, 10:20 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How do I get warpped data to auto fit in merged cells?

You can Autofit rows with merged cells only by using VBA.

One of the many drawbacks to using merged cells.

If you want to go that route...............

See google search thread for code by Greg Wilson. Watch out for word wrap
in the URL which is all one line.

http://groups.google.com/group/micro...1c160cbeb27874

Note..........this is sheet event code and runs when a cell is changed
manually.

To store the code, right-click on your sheet tab and "View Code"

Copy/paste the code into that sheet module.

Alt + q to return to Excel.


Gord Dibben MS Excel MVP

On Wed, 28 Apr 2010 08:12:04 -0700, Tom Flaten Tom
wrote:

I'm developing a survey form. I want to ask a quesiton and the use four
merged cells to the right of the question to record the answer. I also want
the height of the row to automatically grow if the text exceeds the field
lenght. The only way I see that happening is for just individual cells. Can
I make the function work for merged cells too? If so - how?

Thanks,
Tom Flaten