Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dajana
 
Posts: n/a
Default Adjust the size of cells automatically

I need to adjust the size of cells automatically. I am copying information
from one sheet to another automatically and depending on what amount of
information is copied the size of these cells has to adjust automatically or
at least increase to accomodate all text. Is there any way to do this?

Thanks
  #2   Report Post  
Ken Johnson
 
Posts: n/a
Default

Dajana,
This worked for me:
Paste this code into ThisWorkbook code module in the VBA Editor

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As
Range)
Target.Columns.AutoFit
End Sub

Ken Johnson

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
The Excel cells are not automatically calc. existing formula. Peggy Martinez Excel Worksheet Functions 2 July 27th 05 07:22 PM
automatically adjust row height in excel 2000 David D Excel Discussion (Misc queries) 2 July 26th 05 08:05 PM
Can I combine the text from multiple cells automatically KNS Excel Worksheet Functions 5 June 15th 05 06:20 PM
copying content of cell automatically to multiple cells PAUL GRAZIDE Excel Worksheet Functions 1 June 4th 05 06:52 PM
automatically fit an image into merged cells dave Excel Discussion (Misc queries) 1 January 26th 05 11:54 AM


All times are GMT +1. The time now is 05:37 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"