PC Review


Reply
Thread Tools Rate Thread

AutoFitMergedCellRowHeight Limitation

 
 
Charlie W
Guest
Posts: n/a
 
      25th Nov 2009
Thought I posted this question yesterday, but can't find it today. Please
excuse me if this becomes a duplicate post.

I'm trying to autofit text into a single-row merged cell. I wrote a macro
remarkably similar to the one referenced in this question. Both macros work
_most_ of the time. But, it appears that when the length of the text exceeds
some 'magic' value, neither macro works correctly. The problem seems to
occur when the length of the text is more that 400-500 characters. In those
cases, the merged cell gets resized, but not high enough to make all the text
visible.

Even if I place the same text into a single non-merged cell, the behavior
(and the flaw) is the same. The cell is resized, but the last few wrapped
lines of text are cut off. If I manually resize the cell, I can see all the
text. But if I then use the AutoFit function, the cell shrinks back down to
hide the last few lines of text.

Any ideas?
--
cw
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      25th Nov 2009
This is from the xl2003 specifications and limits:

Length of cell contents: (text) 32,767 characters. Only 1,024 display in a
cell; all 32,767 display in the formula bar.

So apparently the limitation is in the Autofit function.

"Charlie W" <(E-Mail Removed)> wrote in message
news:8A3EF573-0B04-488A-A7E2-(E-Mail Removed)...
> Thought I posted this question yesterday, but can't find it today. Please
> excuse me if this becomes a duplicate post.
>
> I'm trying to autofit text into a single-row merged cell. I wrote a macro
> remarkably similar to the one referenced in this question. Both macros
> work
> _most_ of the time. But, it appears that when the length of the text
> exceeds
> some 'magic' value, neither macro works correctly. The problem seems to
> occur when the length of the text is more that 400-500 characters. In
> those
> cases, the merged cell gets resized, but not high enough to make all the
> text
> visible.
>
> Even if I place the same text into a single non-merged cell, the behavior
> (and the flaw) is the same. The cell is resized, but the last few wrapped
> lines of text are cut off. If I manually resize the cell, I can see all
> the
> text. But if I then use the AutoFit function, the cell shrinks back down
> to
> hide the last few lines of text.
>
> Any ideas?
> --
> cw



 
Reply With Quote
 
Charlie W
Guest
Posts: n/a
 
      18th Jan 2010
Thanks. I'm just now seeing this months late. I assumed I'd be able to find
my post (and your response!) by searching the forums for
'AutoFitMergedCellRowHeight' but that doesn't seem to work. I stumbled onto
your reply today while searching for other info.

Apparently there's some sort of a limit (409 pixels?) to the autorowheight
functionality. I just hate to use 'hard' numbers in my code. I'd prefer to
use something like xlMaxRowHeight. But there doesn't seem to be any such
defined constant.

Thanks again.
--
cw


"JLGWhiz" wrote:

> This is from the xl2003 specifications and limits:
>
> Length of cell contents: (text) 32,767 characters. Only 1,024 display in a
> cell; all 32,767 display in the formula bar.
>
> So apparently the limitation is in the Autofit function.
>
> "Charlie W" <(E-Mail Removed)> wrote in message
> news:8A3EF573-0B04-488A-A7E2-(E-Mail Removed)...
> > Thought I posted this question yesterday, but can't find it today. Please
> > excuse me if this becomes a duplicate post.
> >
> > I'm trying to autofit text into a single-row merged cell. I wrote a macro
> > remarkably similar to the one referenced in this question. Both macros
> > work
> > _most_ of the time. But, it appears that when the length of the text
> > exceeds
> > some 'magic' value, neither macro works correctly. The problem seems to
> > occur when the length of the text is more that 400-500 characters. In
> > those
> > cases, the merged cell gets resized, but not high enough to make all the
> > text
> > visible.
> >
> > Even if I place the same text into a single non-merged cell, the behavior
> > (and the flaw) is the same. The cell is resized, but the last few wrapped
> > lines of text are cut off. If I manually resize the cell, I can see all
> > the
> > text. But if I then use the AutoFit function, the cell shrinks back down
> > to
> > hide the last few lines of text.
> >
> > Any ideas?
> > --
> > cw

>
>
> .
>

 
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
AutoFitMergedCellRowHeight limitation Charlie W Microsoft Excel Programming 0 24th Nov 2009 08:43 PM
RE: AutoFitMergedCellRowHeight =?Utf-8?B?R3JlZyBXaWxzb24=?= Microsoft Excel Programming 0 20th Jan 2007 04:04 AM
Is there a page limitation / file size limitation in Word 2003? =?Utf-8?B?THlubg==?= Microsoft Word Document Management 1 28th Aug 2006 11:35 PM
AutoFitMergedCellRowHeight - Jim Rech =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Worksheet Functions 1 20th May 2006 05:57 AM
Re: Help to adapt AutoFitMergedCellRowHeight routine to Target with 2 ormore rows Dave Peterson Microsoft Excel Programming 1 8th Dec 2004 05:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:49 AM.