PC Review


Reply
Thread Tools Rate Thread

How can I size merged cells to fit the needed rows of text?

 
 
Erik
Guest
Posts: n/a
 
      8th Mar 2010
I've got data that can contain a long text string for one field. I currently
merge 6 cells across and set the rowheight to 6 times the normal row height,
and enable text wrapping. Sometimes this is too much space, other times it's
not enough. Fonts unfortunately don't space characters uniformly, so I can't
do it based on text length. Is there a way to do this based on how many
breaks Excel puts in when wrapping text, or another method?
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      8th Mar 2010
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


Gord Dibben MS Excel MVP


On Mon, 8 Mar 2010 10:11:01 -0800, Erik <(E-Mail Removed)>
wrote:

>I've got data that can contain a long text string for one field. I currently
>merge 6 cells across and set the rowheight to 6 times the normal row height,
>and enable text wrapping. Sometimes this is too much space, other times it's
>not enough. Fonts unfortunately don't space characters uniformly, so I can't
>do it based on text length. Is there a way to do this based on how many
>breaks Excel puts in when wrapping text, or another method?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
merged cells into one text cell, size varies dependant on text dat =?Utf-8?B?SmF6enlsYWR5ODI1?= Microsoft Excel Misc 0 9th Dec 2005 08:26 PM
identically size merged cells for sorting rows =?Utf-8?B?anVsaWVhbm5lMTI=?= Microsoft Excel Misc 1 24th Aug 2005 11:26 AM
How can I Excel to re-size when wrapping text in merged cells =?Utf-8?B?U2Ftam95?= Microsoft Excel Misc 4 4th Feb 2005 12:47 AM
Rows with merged cells are not adjusting even w/ Wrap Text and au. =?Utf-8?B?bWtlcm4yMA==?= Microsoft Excel Misc 1 4th Jan 2005 08:10 PM
I can't get Excel to auto-size merged cells with text-wrap formatt =?Utf-8?B?dHJlYXZvcmFsbGVu?= Microsoft Excel Misc 1 11th Sep 2004 02:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 PM.