Share via

hide a macro's movement while running the macro

Anonymous
2013-05-20T21:05:17+00:00

How do I hide the movement/screen jumping around while a macro is running? In other words I have a macro thet goes to different cells and pages while running and I see all this when it is running. How do I stop/hide all the jumping around on my PC screen when a macro is running?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2013-05-20T21:24:08+00:00

    Add this to your code near start.

    With Application

            .ScreenUpdating = False

            .Calculation = xlManual

    End With

    do all the stuff with no jumping around or waiting for calcs

    then reset it at end

    With Application

            .Calculation = xlAutomatic

            .ScreenUpdating = True

    End With

    Gord

    30+ people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-05-20T21:21:06+00:00

    You can use the ScreenUpdating property, like this:

    Application.ScreenUpdating = False

    'Your code

    Application.ScreenUpdating = True

    When you set ScreenUpdating to False the screen will not update while the code is running. Just remember to always set it back to True when you are done.

    tod

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-05-27T16:28:49+00:00

    Thank tod this is exactly what I needed. It worked well. Also Gord answered me too and you don't need the "Application." part of your answer but it workes with it attached anyway. Just moer typing to do is all. Thanks again.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2013-05-27T16:42:39+00:00

    Hi Gord,

    Is rather dangerous when not error handler is foreseen.

    Wkr,

    JP Ronse

    0 comments No comments
  4. Anonymous
    2013-05-27T16:26:38+00:00

    Thank Gord this is exactly what I needed. It worked perfectly.

    0 comments No comments