Just add:
Application.ScreenUpdating = False
<code here>
Application.ScreenUpdating = True
This will prevent it. Also you do not have to use ActiveSheet etc, you can directly reference the sheet which avoids the need to even switch which sheet is active. Instead of:
use
Or
(Or, if you have several to change...)
Additionally this is MUCH faster. If you are using code that "touches" a lot of cells it will be quite slow. This type of code is generated by the Macro Recorder, and usually needs to be edited after it is recorded to avoid this type of problem.
Bookmarks