View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Michiel via OfficeKB.com Michiel via OfficeKB.com is offline
external usenet poster
 
Posts: 48
Default Autofit (Columns.EntireColumn.AutoFit) does not work

Hi Kevin,

Columns.EntireColumn.AutoFit command should work.

But you know, you still gave me the solution to the problem.
Apparently excel was noit able todetermine what Sheet I meant, despite the
fact that I selected it in the preceeding step.

Adding ActiveSheet (like you did) to the command solved the issue!

So, the correct line is:

ActiveSheet.Columns.EntireColumn.AutoFit

THANKS!!!!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200902/1