Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need macro to autofit height for merged cells

I often create spreadsheets where cells contain wrapped text. The ability
for a row to automatically adjust height to accomodate the amount of text is
great. BUT it doesn't work if the text is contained in merged cells.

Is there any way to determine the appropriate row height needed to fit the
given text?

Example: Merge cells A1 and B1. Set justification to left and text to
wrap. Type a bunch of text. Autofit doesn't work for merged cells. How can
I adjust the text to the apropriate height with a VB macro?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Need macro to autofit height for merged cells

Hi Fishman123,

See this macro from Jim Rech:

http://tinyurl.com/4c5l6


---
Regards,
Norman



"FishMan123" wrote in message
...
I often create spreadsheets where cells contain wrapped text. The ability
for a row to automatically adjust height to accomodate the amount of text
is
great. BUT it doesn't work if the text is contained in merged cells.

Is there any way to determine the appropriate row height needed to fit the
given text?

Example: Merge cells A1 and B1. Set justification to left and text to
wrap. Type a bunch of text. Autofit doesn't work for merged cells. How
can
I adjust the text to the apropriate height with a VB macro?



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 won't Autofit row height Hpyifur Excel Discussion (Misc queries) 27 May 20th 23 07:45 PM
Merged cells won't autofit row height on other computers Sarah Excel Discussion (Misc queries) 1 January 26th 09 01:33 PM
Row height using autofit, with no merged cells D.Smith Excel Discussion (Misc queries) 1 July 2nd 06 11:51 AM
Autofit Row Height of Merged Cells Jon Excel Discussion (Misc queries) 3 August 5th 05 08:15 PM
Autofit row height in merged cells BobT Excel Discussion (Misc queries) 1 February 25th 05 04:44 PM


All times are GMT +1. The time now is 03:43 AM.

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"