Screen flashing During Macro

G

Guest

Hi All
I have a really long Macro that executes over a number of pages.
When the Macro is run all of the page changes happen (obviously) in the
background.
I vaguely remember a command that could stop all this happening so that
there was no flashing and page changing, just carry out the function and show
the result. Can someone please advise how to do this.
 
D

Dave Peterson

application.screenupdating = false
'your code here
application.screenupdating = true
 
G

Gord Dibben

Michael

Application.ScreenUpdating = False

'your code

Application.ScreenUpdating = True

Gord Dibben Excel MVP
 
G

Guest

Thanks Dave
Your info is much appreciated

Regards
Michael.

Dave Peterson said:
application.screenupdating = false
'your code here
application.screenupdating = true
 

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