Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Linked Spreadsheet rows

When linking spreadsheets together into a rollup spreadsheet I can not get
the rows to autofit? Can anyone help?
Thank you so much...:)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Linked Spreadsheet rows

Do you have wrap text enabled?

Have you any merged cells in the range? Merged cells won't autofit without VBA
code.


Gord Dibben MS Excel MVP

On Tue, 29 May 2007 06:17:01 -0700, lnorswo
wrote:

When linking spreadsheets together into a rollup spreadsheet I can not get
the rows to autofit? Can anyone help?
Thank you so much...:)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Linked Spreadsheet rows

Wrap Text is enabled in all the sheets and although I do not have a merged
cell in the row.... I do have one in that particular column. Can you
advise? I am no good with VBA code...

"Gord Dibben" wrote:

Do you have wrap text enabled?

Have you any merged cells in the range? Merged cells won't autofit without VBA
code.


Gord Dibben MS Excel MVP

On Tue, 29 May 2007 06:17:01 -0700, lnorswo
wrote:

When linking spreadsheets together into a rollup spreadsheet I can not get
the rows to autofit? Can anyone help?
Thank you so much...:)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Linked Spreadsheet rows

I would get rid of the merged cells.........nothing but problems.

But for event code you can check this out.

Here is event code from Greg Wilson that runs when you ENTER out of a merged
cell.

Note: wrap text format must be preset on the merged cells.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim NewRwHt As Single
Dim cWdth As Single, MrgeWdth As Single
Dim c As Range, cc As Range
Dim ma As Range

With Target
If .MergeCells And .WrapText Then
Set c = Target.Cells(1, 1)
cWdth = c.ColumnWidth
Set ma = c.MergeArea
For Each cc In ma.Cells
MrgeWdth = MrgeWdth + cc.ColumnWidth
Next
Application.ScreenUpdating = False
ma.MergeCells = False
c.ColumnWidth = MrgeWdth
c.EntireRow.AutoFit
NewRwHt = c.RowHeight
c.ColumnWidth = cWdth
ma.MergeCells = True
ma.RowHeight = NewRwHt
cWdth = 0: MrgeWdth = 0
Application.ScreenUpdating = True
End If
End With
End Sub

This is event code. Right-click on the sheet tab and "View Code".

Copy/paste the above into that sheet module.


Gord

On Tue, 29 May 2007 12:50:02 -0700, lnorswo
wrote:

Wrap Text is enabled in all the sheets and although I do not have a merged
cell in the row.... I do have one in that particular column. Can you
advise? I am no good with VBA code...

"Gord Dibben" wrote:

Do you have wrap text enabled?

Have you any merged cells in the range? Merged cells won't autofit without VBA
code.


Gord Dibben MS Excel MVP

On Tue, 29 May 2007 06:17:01 -0700, lnorswo
wrote:

When linking spreadsheets together into a rollup spreadsheet I can not get
the rows to autofit? Can anyone help?
Thank you so much...:)




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
Linked Spreadsheet Opens CarlaInJax Excel Discussion (Misc queries) 0 July 25th 06 05:17 PM
SumIF linked to another spreadsheet ChrisN Excel Discussion (Misc queries) 7 February 24th 06 09:46 AM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
#REF error on linked spreadsheet Randy Rich Links and Linking in Excel 0 December 15th 04 09:21 PM
Cells Linked to another spreadsheet Ronaldo Excel Worksheet Functions 5 November 26th 04 11:09 PM


All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"