PC Review


Reply
Thread Tools Rate Thread

How do I have a linked cell auto-size to fit the linked data?

 
 
CristinPDX
Guest
Posts: n/a
 
      24th Jun 2008
I'm using Excel 2003.

Within a workbook I have a data entry worksheet and several "report"
worksheets. In some cases the data being entered is multiple lines of text.
The cell on the data entry page will automatically re-size to fit all the
lines of text. However, the linked cell on the "report" page does not auto
size and results in the information being cut. I have found that if the data
cell is already populated when the link is established, the report cell will
format to the current cell size. I need this to occur automatically when the
data changes on the data entry page, not just at initial linking.

Any thoughts?
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      24th Jun 2008
The rows will not autofit when the linked data changes.

You must force a re-size by adding event code to the data entry sheet module.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
If Intersect(Target, Me.Range("A1:A50")) Is Nothing Then Exit Sub
On Error GoTo endit
Application.EnableEvents = False
For Each ws In Worksheets(Array("Report1", "Report2", "Report3"))
ws.Rows.AutoFit
Next ws
endit:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Tue, 24 Jun 2008 12:42:07 -0700, CristinPDX
<(E-Mail Removed)> wrote:

>I'm using Excel 2003.
>
>Within a workbook I have a data entry worksheet and several "report"
>worksheets. In some cases the data being entered is multiple lines of text.
>The cell on the data entry page will automatically re-size to fit all the
>lines of text. However, the linked cell on the "report" page does not auto
>size and results in the information being cut. I have found that if the data
>cell is already populated when the link is established, the report cell will
>format to the current cell size. I need this to occur automatically when the
>data changes on the data entry page, not just at initial linking.
>
>Any thoughts?


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      24th Jun 2008
Note: cells on Report sheets must have wrap text enabled.

Gord

On Tue, 24 Jun 2008 14:20:41 -0700, Gord Dibben <gorddibbATshawDOTca> wrote:

>The rows will not autofit when the linked data changes.
>
>You must force a re-size by adding event code to the data entry sheet module.
>
>Private Sub Worksheet_Change(ByVal Target As Range)
>Dim ws As Worksheet
>If Intersect(Target, Me.Range("A1:A50")) Is Nothing Then Exit Sub
>On Error GoTo endit
> Application.EnableEvents = False
>For Each ws In Worksheets(Array("Report1", "Report2", "Report3"))
>ws.Rows.AutoFit
>Next ws
>endit:
> Application.EnableEvents = True
>End Sub
>
>
>Gord Dibben MS Excel MVP
>
>On Tue, 24 Jun 2008 12:42:07 -0700, CristinPDX
><(E-Mail Removed)> wrote:
>
>>I'm using Excel 2003.
>>
>>Within a workbook I have a data entry worksheet and several "report"
>>worksheets. In some cases the data being entered is multiple lines of text.
>>The cell on the data entry page will automatically re-size to fit all the
>>lines of text. However, the linked cell on the "report" page does not auto
>>size and results in the information being cut. I have found that if the data
>>cell is already populated when the link is established, the report cell will
>>format to the current cell size. I need this to occur automatically when the
>>data changes on the data entry page, not just at initial linking.
>>
>>Any thoughts?


 
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
Auto Update Linked data Ingebelle''s Microsoft Excel Worksheet Functions 3 13th Nov 2008 05:40 PM
Displaying linked data in excel 2007 when linked file is not avail Eng_19 Microsoft Excel Misc 0 7th Dec 2007 07:27 PM
Changing font size of drop down box linked to cell =?Utf-8?B?Z2hhcnJpczE3Mg==?= Microsoft Excel Misc 1 30th Jan 2006 01:06 PM
Linked cell auto update??? =?Utf-8?B?Q2hhbmNlMjI0?= Microsoft Excel Programming 3 19th Jan 2005 11:59 PM
auto update linked fields in linked tables =?Utf-8?B?Smhvd2c4?= Microsoft Access Database Table Design 1 7th Nov 2003 06:08 PM


Features
 

Advertising
 

Newsgroups
 


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