LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Application.ScreenUpdating broken

Hello,

Suddenly, I can't turn off ScreenUpdating (Excel 97). If I set it to
False,
it will show False in the Watch window, Debug.print will also show it
as False,
yet when I slide my cursor over the command line, it shows the value =
True.
It's always worked until now, and the problem seems to coincide with
some
experimentation with Automation, running Excel from Word. I've tried
loading Excel
without any Add-Ins or Personal.xls, to no avail.

The following sample code does NOT turn off screenupdating:

Sub tstUpdate()

Application.ScreenUpdating = False
Cells(1, 1) = "ABCDE"
Application.ScreenUpdating = True

End Sub

But this code works as expected:

Sub tstUpdate()

Dim xlApp As Object, MySht As Object

Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
xlApp.Workbooks.Add
Set MySht = xlApp.Activesheet

xlApp.ScreenUpdating = False
MySht.Cells(1, 1) = "ABCD"
xlApp.ScreenUpdating = True

xlApp.Quit
Set xlApp = Nothing

End Sub

Any help appreciated.

Regards,

Dave

 
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
How to set Application.ScreenUpdating = False for Gen use David_Williams_PG () Excel Discussion (Misc queries) 1 August 15th 06 12:06 PM
PLEASE PLEASE HELP Application.Screenupdating modjoe23[_6_] Excel Programming 3 September 3rd 05 05:08 AM
Application.ScreenUpdating MsgBox MichaelC Excel Programming 3 June 15th 05 12:51 AM
SendKeys and Application.ScreenUpdating Michael Malinsky[_2_] Excel Programming 3 March 23rd 05 10:40 PM
Application.ScreenUpdating = False Pieter Kuyck Excel Programming 2 July 15th 03 06:28 PM


All times are GMT +1. The time now is 11:55 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"