Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default a little help with an non critical but annoying error

Hello All

ActiveWorkbook.Worksheets("Dashboard").Columns("E: E").EntireColumn.AutoFit

do i need to do the entire column? or does the E:E take care of that?

sometimes it comes up with an error saying that the range isnt available for
autofit, or something like that.

any and all help appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default a little help with an non critical but annoying error

Try
ActiveWorkbook.Worksheets("Dashboard").Columns(5). EntireColumn.AutoFit

If this post helps click Yes
---------------
Jacob Skaria


"DawnTreader" wrote:

Hello All

ActiveWorkbook.Worksheets("Dashboard").Columns("E: E").EntireColumn.AutoFit

do i need to do the entire column? or does the E:E take care of that?

sometimes it comes up with an error saying that the range isnt available for
autofit, or something like that.

any and all help appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default a little help with an non critical but annoying error

Jacob
========
You don't need the EntireColumn reference since the Columns property
provides that...

ActiveWorkbook.Worksheets("Dashboard").Columns(5). AutoFit

Dawn
=======
Just so you know, you can use the column letter instead of the column number
code if you prefer...

ActiveWorkbook.Worksheets("Dashboard").Columns("E" ).AutoFit

--
Rick (MVP - Excel)


"Jacob Skaria" wrote in message
...
Try
ActiveWorkbook.Worksheets("Dashboard").Columns(5). EntireColumn.AutoFit

If this post helps click Yes
---------------
Jacob Skaria


"DawnTreader" wrote:

Hello All

ActiveWorkbook.Worksheets("Dashboard").Columns("E: E").EntireColumn.AutoFit

do i need to do the entire column? or does the E:E take care of that?

sometimes it comes up with an error saying that the range isnt available
for
autofit, or something like that.

any and all help appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default a little help with an non critical but annoying error

Worksheets("Dashboard").Columns("E").AutoFit

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"DawnTreader" wrote in message
...
Hello All

ActiveWorkbook.Worksheets("Dashboard").Columns("E: E").EntireColumn.AutoFit

do i need to do the entire column? or does the E:E take care of that?

sometimes it comes up with an error saying that the range isnt available
for
autofit, or something like that.

any and all help appreciated.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default a little help with an non critical but annoying error

Thanks Rick..

"Rick Rothstein" wrote:

Jacob
========
You don't need the EntireColumn reference since the Columns property
provides that...

ActiveWorkbook.Worksheets("Dashboard").Columns(5). AutoFit

Dawn
=======
Just so you know, you can use the column letter instead of the column number
code if you prefer...

ActiveWorkbook.Worksheets("Dashboard").Columns("E" ).AutoFit

--
Rick (MVP - Excel)


"Jacob Skaria" wrote in message
...
Try
ActiveWorkbook.Worksheets("Dashboard").Columns(5). EntireColumn.AutoFit

If this post helps click Yes
---------------
Jacob Skaria


"DawnTreader" wrote:

Hello All

ActiveWorkbook.Worksheets("Dashboard").Columns("E: E").EntireColumn.AutoFit

do i need to do the entire column? or does the E:E take care of that?

sometimes it comes up with an error saying that the range isnt available
for
autofit, or something like that.

any and all help appreciated.



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
Critical requirement. Christopher Naveen[_2_] Excel Worksheet Functions 3 June 22nd 08 01:19 PM
annoying subscript out of range error PBcorn Excel Programming 1 June 12th 08 03:46 PM
Critical graph derdle Excel Discussion (Misc queries) 3 October 31st 06 09:19 PM
Why did I get an unexpected critical error? Lynkwright Excel Discussion (Misc queries) 1 January 20th 06 04:45 PM
VB Critical 400 Alan M Excel Programming 1 January 7th 05 11:21 AM


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