I have a macro that runs for about a minute and loads/processes a lot of data. Naturally I’ve turned off screen updating so that it runs faster and doesn’t jump around all the time. However, I’d like to be able to turn on screen updating/force update one cell.
I can’t just do something like:
Application.ScreenUpdating = True
<SET VALUE>
Application.ScreenUpdating = False
Because when you set screen updating to true, it updates all the changes that have been made since you set it to false. How do I update just that one cell?
Thanks!
The “doesn’t jump around all the time” part makes me wonder if you are using
SelectandActivatea lot in your code. These are very time-consuming operations and you should be able to achieve most things without them.Judicious use of the
Rangeand/orCellsproperties of theWorksheetin question should be a lot faster than any combination ofSelectand/orActivate. If you can speed up your code enough then you may be able to leaveScreenUpdatingon and thus solve your original problem