Application.ScreenUpdating = False
Application.ScreenUpdating = True
I found the contradictory statements about the second line.
Is it necessery or not?
Someone says that Excel turns on ScreenUpdating automatically, after each End Sub line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, ScreenUpdating should always be set back to True after macro finishes. Plus, don’t forget to restore it in case of error, I usually always put Application.ScreenUpdating=True in error hangling code before exit Sub/Function.
Excel does not apply any automatic setting of this property after macro ends.