Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default autofit function in excel


hello,

I have a terrible anoying little problem. My macro generates multiple
workbooks of data extracted from one sheet. Now the sheet where i
placed the buttons gets autofitted, even though i assigned the
workbooks as windows("wb1.xls").activate and than
activesheet.cells.select
selection.autofit

I always autofits my macro sheet(as i like to call it)

Any suggestions?

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default autofit function in excel


Try some thing more specific eg. :-
Workbooks("wb1.xls").Worksheets("Sheet1").Columns( "A:E").AutoFit

although Activesheet.Columns("A:E").AutoFit should work too


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

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
Autofit (Columns.EntireColumn.AutoFit) does not work Michiel via OfficeKB.com Excel Discussion (Misc queries) 3 February 10th 09 05:29 PM
AutoFit function Donos Excel Worksheet Functions 2 January 7th 08 08:51 PM
AutoFit function Donos Excel Discussion (Misc queries) 1 January 7th 08 08:43 PM
Excell autofit row height function brg Excel Worksheet Functions 1 March 28th 07 03:59 AM
How do I modify the autofit function in Excel? NadineWoj Excel Discussion (Misc queries) 2 February 22nd 06 10:25 PM


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

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"