Thread: Screen Updating
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Screen Updating

Are you sure that the setting isn't changing to true some place in your code.

There are some things (calling functions in the analysis toolpak, IIRC) that
change this setting.

I'd pepper the code with statements like:

Debug.print "Step 1: " & Application.ScreenUpdating
some code
Debug.print "Step 2: " & Application.ScreenUpdating
more code
Debug.print "Step 3: " & Application.ScreenUpdating
....

To see where it's getting changed.

If it is something that you can't control. Then you may just want to find that
spot and turn off .screenupdating after it's toggled back on.



" wrote:

I'm using Excel 2003. I start out each prodedure with the following
two lines of code:

Application.EnableEvents=False
Application.ScreenUpdating=False

From the beginning of time until now, these two lines of code worked
as desired. Now, however, the value for Application.ScreenUpdating
remains True. I've trapped the code to move through each line of code.
The line of code is read, but the value remains True.

Application.EnableEvents works as expected. The value changes to
False.

Has anyone been encountering this issue?

Thanks.

Michael


--

Dave Peterson