What happens if i keep Application.ScreenUpdating = False ?

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
347
Office Version
  1. 365
Platform
  1. Windows
Hey community,

I want to use Application.ScreenUpdating = False in my VBA code to improve calculating time. I can't see difference between false/true
I get result in both option. Can anybody explain me that please?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
If you turn screenupdating off (ie False) it will prevent the screen from refreshing until the macro has finished.
How much time (if any) it will save depends on your code.
 
Upvote 0
Thanks for reply, i use same VBA with different ranges 30-40 times. should i add Application.ScreenUpdating = False to all of them ? or only first one?
 
Upvote 0
Hi,
Use application.screenupdating= false ath the beginning of the main sub and the one with true value at the end. However, I recommend you include in the sub error handling and turn on screen updating when your sub goes error.
Regards,
Sebastian
 
Upvote 0
thanks for reply,
i use module to call all subs ( 40 subs ) can i add screenupdate on module instead of VBA?
can you please tell me how can i add error sub to my VBA?
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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