Using Screen Updating

julhs

Active Member
Joined
Dec 3, 2018
Messages
407
Office Version
  1. 2010
Platform
  1. Windows
Need some clarification on this.

I have a Main Sub that has Screen Updating False/True at the beginning and end of it.
The Main Sub, part way through calls a Secondary Sub that ALSO has Screen Updating False/True.

The question is; when the Secondary Sub has run and it goes back to the Main Sub, is the Main Sub Screen Updating now set to “=True” ( as set by the Secondary Sub) or does it default back to the Main Sub’s setting of “= False”.

To explain it another way.
Main Sub - Screen Updating = False
Call Secondary Sub - Screen Updating = False
Run Secondary Sub
Secondary Sub - Screen Updating = True
Return to Main Sub
Now is the status of Screen Updating in the Main Sub “True” or “False”?

I did add an extra Screen Updating “= False” to the Main Sub after the Secondary had run but still getting more screen flicker than I would like

This is not a trick question!!!
 
Well, learnt something new today.
It means I’ve been under the misapprehension that needed to set it back to true in same way as enable events at the end of the sub.
Thanks Rory
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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