PC Review


Reply
Thread Tools Rate Thread

Auto Filter Freeze Up

 
 
JeremyJ
Guest
Posts: n/a
 
      24th Dec 2008
I have "Worksheet_SelectionChange" code that alters the formating on the
sheet when I select a certain cell. For some reason excel freezes when I use
the Auto Filter. What should I do???
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      24th Dec 2008
As always post your code. You probably didn't restrict the code to your
cell.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"JeremyJ" <(E-Mail Removed)> wrote in message
news:5B8B8500-3631-4F3F-B03A-(E-Mail Removed)...
>I have "Worksheet_SelectionChange" code that alters the formating on the
> sheet when I select a certain cell. For some reason excel freezes when I
> use
> the Auto Filter. What should I do???


 
Reply With Quote
 
JeremyJ
Guest
Posts: n/a
 
      27th Dec 2008
I narrowed down the problem to ScreenUpdating. It ended up having nothing to
do with my formatting code. It's as simple as this....

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
End Sub

Excel Freezes when I try to sort data using the Sort buttons in the
autofilter:
Sort A to Z
Sort Z to A
Sort by Color

When I click the "X" to close the program and click cancel when it asks me
if I want to save or not Excel unfreezes. I am using Excel 2007 with Vista.
Any ideas? Are you able to recreate this problem on your computer?


"Don Guillett" wrote:

> As always post your code. You probably didn't restrict the code to your
> cell.
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "JeremyJ" <(E-Mail Removed)> wrote in message
> news:5B8B8500-3631-4F3F-B03A-(E-Mail Removed)...
> >I have "Worksheet_SelectionChange" code that alters the formating on the
> > sheet when I select a certain cell. For some reason excel freezes when I
> > use
> > the Auto Filter. What should I do???

>
>

 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      27th Dec 2008
Hi

Without the entire code it's hard to tell.

But a guess would be that you don't turn on screenupdating at the end
of the sub.

---
Per

On 27 Dec., 20:05, JeremyJ <Jere...@discussions.microsoft.com> wrote:
> I narrowed down the problem to ScreenUpdating. *It ended up having nothing to
> do with my formatting code. *It's as simple as this....
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> Application.ScreenUpdating = False
> End Sub
>
> Excel Freezes when I try to sort data using the Sort buttons in the
> autofilter:
> * * Sort A to Z
> * * Sort Z to A
> * * Sort by Color
>
> When I click the "X" to close the program and click cancel when it asks me
> if I want to save or not Excel unfreezes. *I am using Excel 2007 with Vista. *
> Any ideas? *Are you able to recreate this problem on your computer?
>
>
>
> "Don Guillett" wrote:
> > As always post your code. You probably didn't restrict the code to your
> > cell.

>
> > --
> > Don Guillett
> > Microsoft MVP Excel
> > SalesAid Software
> > dguille...@austin.rr.com
> > "JeremyJ" <Jere...@discussions.microsoft.com> wrote in message
> >news:5B8B8500-3631-4F3F-B03A-(E-Mail Removed)...
> > >I have "Worksheet_SelectionChange" code that alters the formating on the
> > > sheet when I select a certain cell. *For some reason excel freezes when I
> > > use
> > > the Auto Filter. What should I do???- Skjul tekst i anførselstegn -

>
> - Vis tekst i anførselstegn -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Filter - Custom Auto Filter Johnnyboy5 Microsoft Excel Programming 4 2nd Aug 2009 09:36 AM
Data>Filter>Auto Filter in excel 2007? TIJ Microsoft Excel New Users 2 13th Nov 2008 03:28 AM
Excel 2007 Auto Filter Filter Django Microsoft Excel Misc 2 9th Sep 2008 10:52 PM
Excel auto filter doesn't recoginize case - won't filter AA from A =?Utf-8?B?TWlrZXk=?= Microsoft Excel Misc 1 29th Sep 2005 08:18 PM
after auto update all auto updates freeze =?Utf-8?B?U3RldmVu?= Windows XP General 1 3rd May 2004 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.