what is the point of doing these:
Application.ScreenUpdating = False
Application.DisplayAlerts = False
does it really save that much time?
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.
Agree.
I have found that when you turn off
ScreenUpdating,Calculation, it’s best to think about how to do as much work (writes,reads,events,…) as possible for as fewScreenUpdatingcalls in return. This will speed up operations while also providing the user with a better and more tolerable experience. Say, for example that you want to write some data to a sheet as fast as possible. You could do this:or to go faster you could do this:
Similarly, when writing data, it’s quickest to write larger chunks, fewer times. so the ideal number of writes, if any, is one. You can do this by treating a
Rangeas a 2Darray[rows,cols]. I have found the following to be effective:Here, there are no loops, this optimises each individual task’s time in the CPU which results in quicker processing times and in turn seems to make excel work normally (not crash).
HTH,
F