Error Banner.fade_out.modal_overlay.modal_overlay .modal_wrapper.modal_overlay [email protected](max-width:630px)@media(max-width:630px).modal_overlay .modal_fixed_close.modal_overlay .modal_fixed_close:before.modal_overlay .modal_fixed_close:before.modal_overlay .modal_fixed_close:before.modal_overlay .modal_fixed_close:hover:before.
The Screen Updating property resets at the end of a procedure.
This means that if you run a different subroutine after the one above and you haven't added the line of code to disable screen updates to it, you'll be able to see the screen updating in the background.
To demonstrate the principle of this technique we'll need a small example procedure that makes lots of visible changes to the Excel workbook.
You can either download the example here, or create a new blank workbook, add around five worksheets to it and then copy the code shown below into a new module.
You should be able to see the Excel screen flickering in the background as the macro carries out its tasks until, eventually, it finishes.
The next time we run the procedure we don't want to be able to see the screen flickering in the background.
This means that the Excel screen can look like it has "gone crazy" while the macro is running.
One thing you may want to do with your macro to make it run faster and to prevent distracting flashes on the screen is to turn off screen updating while the macro is running.
, Excel and VBA expert Curt Frye introduces object-oriented programming and shows how to automate routine tasks and provide custom functionality to enhance Excel performance and efficiency.