Is anyone having problem with Excel 2003 Application.ScreenUpdatin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
Screenupdating reverts to true when the macro ends. So both may be correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top