What is the command to hide macro operations

M

Martin C

I used to know this, but have forgotten it and cannot find it through Google
for the Excel help.

I have written a macro for a spreadsheet, but it is rather slow in running.
I once used a command that effectively hid the operations taking place by
the macro from the screen. This significantly increased the speed at which
the macro ran.

Does any kind soul know which VBA command is required to turn off the
console refresh and then later turn it back on again.

TIA
Martin
 
P

Pete_UK

Put this at the beginning of your code:

Application.ScreenUpdating = False

and don't forget to include this:

Application.ScreenUpdating = True

to turn it back on again.

Hope this helps.

Pete
 
M

Martin C

Thanks for the rapid response.
I remember now and it works.
Thanks again.
Martin


Put this at the beginning of your code:

Application.ScreenUpdating = False

and don't forget to include this:

Application.ScreenUpdating = True

to turn it back on again.

Hope this helps.

Pete
 
P

Pete_UK

You're welcome, Martin - glad to help.

Pete

Thanks for the rapid response.
I remember now and it works.
Thanks again.
Martin


Put this at the beginning of your code:

    Application.ScreenUpdating = False

and don't forget to include this:

    Application.ScreenUpdating = True

to turn it back on again.

Hope this helps.

Pete






- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top