Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Is anyone having problem with Excel 2003 Application.ScreenUpdatin

Hi,
I'm having problem with Application.ScreenUpdating, I got a module
(DisableAppl) which only contain the following code:

With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With

When I type the following under Immediate Window, I get the following answer:
?application.ScreenUpdating=False
False
?Application.Calculation = xlCalculationManual
True
?Application.EnableEvents = False
True

The next thing I tried under Immediate Window is:

Application.ScreenUpdating=False

Then I typed again the following under Immediate Window is:
?application.ScreenUpdating=False
True

Which give me a true this time.

The DisableAppl module is the first action that get taken under another
module.

Could someone please let me know is there a work around?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Is anyone having problem with Excel 2003 Application.ScreenUpdatin

Hi,

I just tried inserting
Debug.Print Application.ScreenUpdating
between sub-module in the main module, and in the Immediate Window I got
False, which is what I expect. however, when I typed:
?Application.ScreenUpdating
I got True, so which one is right?

Thanks


"augustus" wrote:

Hi,
I'm having problem with Application.ScreenUpdating, I got a module
(DisableAppl) which only contain the following code:

With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With

When I type the following under Immediate Window, I get the following answer:
?application.ScreenUpdating=False
False
?Application.Calculation = xlCalculationManual
True
?Application.EnableEvents = False
True

The next thing I tried under Immediate Window is:

Application.ScreenUpdating=False

Then I typed again the following under Immediate Window is:
?application.ScreenUpdating=False
True

Which give me a true this time.

The DisableAppl module is the first action that get taken under another
module.

Could someone please let me know is there a work around?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is anyone having problem with Excel 2003 Application.ScreenUpdatin

Screenupdating reverts to true when the macro ends. So both may be correct.

--
Regards,
Tom Ogilvy

"augustus" wrote in message
...
Hi,

I just tried inserting
Debug.Print Application.ScreenUpdating
between sub-module in the main module, and in the Immediate Window I got
False, which is what I expect. however, when I typed:
?Application.ScreenUpdating
I got True, so which one is right?

Thanks


"augustus" wrote:

Hi,
I'm having problem with Application.ScreenUpdating, I got a module
(DisableAppl) which only contain the following code:

With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With

When I type the following under Immediate Window, I get the following

answer:
?application.ScreenUpdating=False
False
?Application.Calculation = xlCalculationManual
True
?Application.EnableEvents = False
True

The next thing I tried under Immediate Window is:

Application.ScreenUpdating=False

Then I typed again the following under Immediate Window is:
?application.ScreenUpdating=False
True

Which give me a true this time.

The DisableAppl module is the first action that get taken under another
module.

Could someone please let me know is there a work around?



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
Excel 2003 - the "X" to exit the application option is greyed out. msiegert Excel Discussion (Misc queries) 5 April 19th 05 11:56 PM
Excel 2003 and Application.Quit Dean[_6_] Excel Programming 6 June 22nd 04 06:05 PM
Problem quitting excel when it is used by ASP.NET application Tom Excel Programming 0 May 10th 04 08:35 PM
Problem on the ASP using the Excel.Application Object David Huang Excel Programming 0 April 23rd 04 02:07 AM
Problem with closing the excel application guhan Excel Programming 1 August 20th 03 01:56 PM


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