Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ScreenUpdating Problem

This code does not work unless I comment out the ScreenUpdating lines.
Can someone help correct this problem?
Thanks, Phil

Sub GoToStrategy1() 'Positions the first strategy on screen
Application.ScreenUpdating = False
Range("A1").Select
ActiveWindow.Zoom = True
ActiveWindow.Zoom = 62 'Sizes the window to 62%
Application.ScreenUpdating = True
End Sub


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default ScreenUpdating Problem

It works fine on Excel 2002 & WinXP Pro, is there a "Change Event" firing
when selecting "A1" that calls other code that could be interfering? It's
just a hunch but you could try turning "off " and then "on" events while
running the code.

I don't think you need the "ActiveWindow.Zoom = True", this makes the zoom
400% which is unnecessary because it really ends up at 62% anyway.

Sub GoToStrategy1() 'Positions the first strategy on screen
Application.EnableEvents = False
Application.ScreenUpdating = False
Range("A1").Select
'ActiveWindow.Zoom = True
ActiveWindow.Zoom = 62 'Sizes the window to 62%
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub


--
Regards,
Rocky McKinley


"pjhageman " wrote in message
...
This code does not work unless I comment out the ScreenUpdating lines.
Can someone help correct this problem?
Thanks, Phil

Sub GoToStrategy1() 'Positions the first strategy on screen
Application.ScreenUpdating = False
Range("A1").Select
ActiveWindow.Zoom = True
ActiveWindow.Zoom = 62 'Sizes the window to 62%
Application.ScreenUpdating = True
End Sub


---
Message posted from http://www.ExcelForum.com/



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
about screenupdating baha Excel Discussion (Misc queries) 0 March 25th 10 06:16 AM
Screenupdating Problems Trent Excel Discussion (Misc queries) 0 April 28th 06 07:03 AM
.ScreenUpdating Problem? Phil Hageman[_3_] Excel Programming 1 December 12th 03 12:32 AM
ScreenUpdating not effective Boaz Michaely Excel Programming 1 November 11th 03 07:50 PM
screenupdating command ignored Bruce[_6_] Excel Programming 2 September 10th 03 03:50 PM


All times are GMT +1. The time now is 11:07 AM.

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"