PC Review


Reply
Thread Tools Rate Thread

Is Auto Expansion (i.e., wrap text) of a cell possible when thecell's contents are based on another cell?

 
 
Dave K
Guest
Posts: n/a
 
      28th Jan 2011
I am trying to display the results from one tab (Tab 1) in another
(Tab 2).

So, for example, tab 2 contains the formula "=Tab1!A2".

However, when the results are too large to fit the cell in tab 2
(i.e., the cell that contains a formula that draws from a cell in tab
1), the wrap text feature does not work unless i first double click in
the cell in tab 2.

Is there any way around this? Can the wrap text feature work
automatically somehow? Or will i need to double click in every cell
that contains text that doesn't fit into the cell.

Thanks for any suggestions, or VBA code, that might make this
possible.

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      28th Jan 2011
It's not the wrap text feature that's failing, it's really the rowheight that's
not adjusting, right?

If that's true, then this is just how excel works.

But you could add an event macro that adjusts rowheights (or columnwidths) each
time excel recalculates.

Saved from a previous post:

Excel doesn't change the size of rows/columns when a formula recalculates. I
would imagine that there would be people just as upset if their meticulously
designed forms changed with every recalculation.

But you could use the worksheet_calculate event to resize rows or columns.


Option Explicit
Private Sub Worksheet_Calculate()
application.enableevents = false
Me.Rows.AutoFit
'or be specific
Me.Rows("1:33").AutoFit
application.enableevents = true
End Sub

This code would be located in the worksheet's module that needs this behavior.

Rightclick on the worksheet tab, select view code, and paste this into the newly
opened code window (usually on the right).

Then back to excel and recalculate.

On 01/28/2011 13:12, Dave K wrote:
> I am trying to display the results from one tab (Tab 1) in another
> (Tab 2).
>
> So, for example, tab 2 contains the formula "=Tab1!A2".
>
> However, when the results are too large to fit the cell in tab 2
> (i.e., the cell that contains a formula that draws from a cell in tab
> 1), the wrap text feature does not work unless i first double click in
> the cell in tab 2.
>
> Is there any way around this? Can the wrap text feature work
> automatically somehow? Or will i need to double click in every cell
> that contains text that doesn't fit into the cell.
>
> Thanks for any suggestions, or VBA code, that might make this
> possible.
>


--
Dave Peterson
 
Reply With Quote
 
Dave K
Guest
Posts: n/a
 
      9th Feb 2011
On Jan 28, 4:26*pm, Dave Peterson <peter...@XSPAMverizon.net> wrote:
> It's not the wrap text feature that's failing, it's really the rowheight that's
> not adjusting, right?
>
> If that's true, then this is just how excel works.
>
> But you could add an event macro that adjusts rowheights (or columnwidths) each
> time excel recalculates.
>
> Saved from a previous post:
>
> Excel doesn't change the size of rows/columns when a formula recalculates.. *I
> would imagine that there would be people just as upset if their meticulously
> designed forms changed with every recalculation.
>
> But you could use the worksheet_calculate event to resize rows or columns..
>
> Option Explicit
> Private Sub Worksheet_Calculate()
> * * *application.enableevents = false
> * * *Me.Rows.AutoFit
> * * *'or be specific
> * * *Me.Rows("1:33").AutoFit
> * * *application.enableevents = true
> End Sub
>
> This code would be located in the worksheet's module that needs this behavior.
>
> Rightclick on the worksheet tab, select view code, and paste this into the newly
> opened code window (usually on the right).
>
> Then back to excel and recalculate.
>
> On 01/28/2011 13:12, Dave K wrote:
>
>
>
>
>
> > I am trying to display the results from one tab (Tab 1) in another
> > (Tab 2).

>
> > So, for example, tab 2 contains the formula "=Tab1!A2".

>
> > However, when the results are too large to fit the cell in tab 2
> > (i.e., the cell that contains a formula that draws from a cell in tab
> > 1), the wrap text feature does not work unless i first double click in
> > the cell in tab 2.

>
> > Is there any way around this? *Can the wrap text feature work
> > automatically somehow? *Or will i need to double click in every cell
> > that contains text that doesn't fit into the cell.

>
> > Thanks for any suggestions, or VBA code, that might make this
> > possible.

>
> --
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -


thanks very much!
 
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
Is Auto Expansion (i.e., wrap text) of a cell possible when thecell's contents are based on another cell? Dave K Microsoft Excel Programming 2 28th Jan 2011 10:27 PM
how to update certain text in a cell according to thecell colour Ashish Patil Microsoft Excel Worksheet Functions 1 30th Apr 2008 07:06 PM
Auto Text Wrap in a Cell =?Utf-8?B?U2NvdHQgRG91Z2xhcw==?= Microsoft Excel Misc 1 5th Jul 2006 07:22 PM
Auto Expansion of Row Height Using Text Wrap George Cabrera Microsoft Excel Discussion 8 26th Jun 2004 12:18 AM
Word Wrap Cell Expansion Fletch Microsoft Excel New Users 1 25th Mar 2004 06:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 PM.