Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Stop screen updating in Excel

Stop screen updating in Excel

Stop screen updating in Excel

Can anyone tell me the VB to stop my Excel Macro from updating the screen while it runs. In other words - when I click run - I just want a message saying "Macro Running" or something - then the code will run and finish and the finished position will be displayed with a message like "Macro Finished". I don't want users to see the screen 'flicking' around as the code moves between cells and worksheets

Any help gratefully recieved


Dan Auber
Dan Auber's Home Page

RE: Stop screen updating in Excel


The code to stop the screen updating is
Application.ScreenUpdating = False

Try it in combination with these lines:
Application.ScreenUpdating = False
Application.StatusBar = "Running macro."
--your code here..
MsgBox "Macro complete", vbOKOnly + vbInformation, "Title"
Application.ScreenUpdating = True

RE: Stop screen updating in Excel

Just some additional info:

If you want to do this in VBA for Access, the command is:
   DoCmd.Echo False   ' Also, a second Optional Parameter is to add a string that _
                                  goes into the Status Bar while screen update is off.

The command to turn screen updating back on is:
   DoCmd.Echo True

*** WARNING ***
If you use this, MAKE SURE you include error checking, and if you recieve ANY error,
turn your screen updating back on. Access97 (and probably 2000, don't know yet)
will NOT turn your screen updating back on, until you explicitly tell it to. If this happens, and you have an error. You'll get a frozen application, and have to kill it useing the task manager.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close