Excel vba status bar screenupdating

C) How do you manually break code running with Do Events in it?

Thus, the main body of your macro can do its work behind the scenes without the necessity of stopping to update the screen.Excel Tips is your source for cost-effective Microsoft Excel training.When you use the status bar to display a message to the user, that message will be displayed until your code returns control of the status bar back to Excel. This may be a problem when you use it to display a "Macro Complete" message -- the message will always remain in the status bar.Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013.This tip (9151) applies to Microsoft Excel 2007, 2010, and 2013.

You can find a version of this tip for the older menu interface of Excel here: Turning Off Screen Updating. Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. Tell the user what's going on and provide an indication of progress, ideally every three to ten seconds.Many people write their own macros to manipulate the information in a workbook.Many times the macro may do quite a bit with the data, such as selecting different cells, replacing values or formulas, and taking other types of actions.The Status Bar property of the Application object in Excel VBA can be used to indicate the progress of a lengthy macro.This way, you can let the user know that a macro is still running.For long macros I would advocate displaying a Userform saying "Please Wait" and for very long macros showing a progress bar or percentage complete, and maybe even a "Cancel" button to exit before completion.