How do I get warpped data to auto fit in merged cells?

T

Tom Flaten

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
 
L

Luke M

Nope.

Generally, its better to avoid using merged cells as they tend to cause more
problems than benefits. Can you just use a large single cell?
 
G

Gord Dibben

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/micr...60cbeb27874?lnk=st&q=&rnum=4#ca1c160cbeb27874

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top