Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default How can I size merged cells to fit the needed rows of text?

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default How can I size merged cells to fit the needed rows of text?

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
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
merged cells into one text cell, size varies dependant on text dat Jazzylady825 Excel Discussion (Misc queries) 0 December 9th 05 08:26 PM
identically size merged cells for sorting rows julieanne12 Excel Discussion (Misc queries) 1 August 24th 05 11:26 AM
How can I Excel to re-size when wrapping text in merged cells Samjoy Excel Discussion (Misc queries) 4 February 4th 05 12:47 AM
Rows with merged cells are not adjusting even w/ Wrap Text and au. mkern20 Excel Discussion (Misc queries) 1 January 4th 05 08:10 PM
Help needed with merged cells Frank Rizzo Excel Programming 3 November 5th 04 05:22 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"