LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Can you get a Merged Cell with Text Wrap to Autofit?

Hi Jennie,

I inadvertently sent the wrong link!

Try this one:

http://tinyurl.com/4c5l6

---
Regards,
Norman



"jennie" wrote in message
...

Hi,

Here is the problem:
Cells A1:A15 form a range called TheRange, they are a set of merged
cells.

I want the text that is imputed into TheRange from the Userform to have
text wrap on and then autofit the row.
However this does not seem to work with the merged range - the text
wrap is on but the autofit doesn't fit the row so all the text can be
seen, only the top row of text can be seen in effect.
To get all the text to be seen I have to go and change the row heights
manually, this is not an option as it should all be an automatic
process - and I can not hard code the row heights in as I don't know
how much text there will be each time.

This is the code I am currently using after the text has been entered
into TheRange:

w is the worksheet

With w.Range(TheRange)
TextWrap = True
EntireRow.AutoFit
End With

Any help / suggestions would be great
Thanks a lot
Jennie


--
jennie
------------------------------------------------------------------------
jennie's Profile:
http://www.excelforum.com/member.php...fo&userid=6706
View this thread: http://www.excelforum.com/showthread...hreadid=263131



 
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
Wrap Text doesn't work in Merged Cell Steve Excel Discussion (Misc queries) 1 July 30th 09 12:00 AM
Merged cell text does not wrap Jessica Excel Discussion (Misc queries) 1 December 5th 07 03:00 AM
How do I view all text in a merged cell? Wrap text is activated. susjorg Excel Discussion (Misc queries) 1 January 23rd 07 07:34 PM
Autofit with Merged Cells/Wrap Text Macro Problem elfmajesty Excel Discussion (Misc queries) 3 May 25th 06 06:32 PM
How do I "Wrap Text" & "Autofit" within Merged Cells in Excel? 6-shooter Excel Worksheet Functions 3 October 31st 04 12:14 AM


All times are GMT +1. The time now is 03:19 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"