ScreenUpdating = False not working

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
macro is set up as below

Code:
Sub Start Macro()
application.screenupdating = false
call macro2
application.screenupdating = true
End Sub

Now usually it works fine but the macro im working with does calculations on 30000 ish rows (takes around 90 seconds) and causes Excel to display "Not Responding" for a short time and i see some of the calculations happening.

Anyone experienced this? And is there anything i can add to application.screenupdating to make sure the window doesnt change at all while the macro is running?

Thanks in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Care to post the code in macro2?
 
Last edited:
Upvote 0
Figured it guys
When calling another procedure (macro2) it seemed to turn it back to true

So added false to top of macro2 and it's done the trick

Thanks for the help
 
Upvote 0
When calling another procedure (macro2) it seemed to turn it back to true
Odd, I tested it out, and it didn't do that for me. Cannot figure out why it would do that until there was something in "macro2" explicitly turning it on...
 
Upvote 0
And I agree it shouldn't exhibit that behaviour. Again post your code
 
Upvote 0
Here is my simple test to show that calling another macro should not change that value (unless that other macro explicitly changes the value):
Code:
Sub Test()
    Application.ScreenUpdating = False
    Call Macro2
    Application.ScreenUpdating = True
End Sub

Sub Macro2()
    MsgBox "ScreenUpdating currently set to: " & Application.ScreenUpdating
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top