#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default autosize

I have a code that autosizes all my columns only when you, but it only works
when you click another sheet in the work book and then click back to the
sheet with the code. How do i get it to autosize when you move to the any
other cell instead of having to go to another sheet and then back again?

Your help is always appreciated people so I thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
ADG ADG is offline
external usenet poster
 
Posts: 76
Default autosize

Try puting your code in the below for the sheet

Private Sub Worksheet_Change(ByVal Target As Range)

End Sub

Check to see if you are in the right column before executing.
--
Tony Green


"Learning the hard way" wrote:

I have a code that autosizes all my columns only when you, but it only works
when you click another sheet in the work book and then click back to the
sheet with the code. How do i get it to autosize when you move to the any
other cell instead of having to go to another sheet and then back again?

Your help is always appreciated people so I thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default autosize

Worked perfectly.
Thanks ADG, dont know why I didnt think of that! Must be getting tired.

"ADG" wrote:

Try puting your code in the below for the sheet

Private Sub Worksheet_Change(ByVal Target As Range)

End Sub

Check to see if you are in the right column before executing.
--
Tony Green


"Learning the hard way" wrote:

I have a code that autosizes all my columns only when you, but it only works
when you click another sheet in the work book and then click back to the
sheet with the code. How do i get it to autosize when you move to the any
other cell instead of having to go to another sheet and then back again?

Your help is always appreciated people so I thank you in advance.

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
ComboBox autosize GIP Excel Worksheet Functions 0 August 21st 10 04:50 PM
Autosize Error willemeulen Excel Discussion (Misc queries) 0 February 25th 10 12:17 PM
TextBox Autosize ESR Excel Discussion (Misc queries) 0 March 13th 09 07:45 PM
Autosize Row Heights Andibevan Excel Discussion (Misc queries) 6 May 11th 05 01:45 PM
comments AutoSize CG Rosén Excel Programming 2 November 29th 03 11:20 AM


All times are GMT +1. The time now is 10:38 PM.

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

About Us

"It's about Microsoft Excel"