Application screenupdating not working

30-Sep-2018 16:49 by 6 Comments

Application screenupdating not working - the seven lady godiva's online dating

I tried debug.print application.screenupdating and it showed true in the debugger.

In that case, I update the status bar message every time the code starts on the next sheet.I also momentarily turn screen updating on and then off again to show each sheet as it processes.Much better than staring at an unchanging screen for 40 seconds (that would be like watching the microwave for 40 seconds -- it takes forever).I have VBA code that works under windows 7 and excel 2013.It sets application.screenupdating to false just before every windows (filename).activate function.Another program for others runs through about 25 steps. Status Bar text can be updated with anything throughout the macro - plain text, calculated completion precentages, elapsed time, etc.

For that, I post and update a userform for each step with a text message with the elapsed time, the number and name of each step, and a progress bar. Also, if the program quits, a screen snapshot tells me where the macros quit working on that user's computer. Don't use "Exit Sub", instead use "Go To End Of Macro" and place this code before "End Sub". Screen Updating = True The same goes for all you do with "Application.***" A simple and less involved method of providing progress updates would be to use the following line of code in the macro: Application. Prior to "End Sub", place this last line of code: Application. Screen Updating = False, the statusbar will change.] This does the side effect that it looks as though Excel has "hung" or crashed, especially if the macros is going to take some time to execute.

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.

In part 2 of our VBA Crash Course, we are going to learn what Variables, Conditions & Loops are and how to use them in Excel VBA.

Screen Updating-Property does not work properly in Excel 2016 / Win 10. The screen is updated after each step in VBA, although the Screen Updating is set to False. It would be nice to have this bug fixed as quickly as possible, since I have hundreds of Makros who depend on this property.

Many people write their own macros to manipulate the information in a workbook.

If you are new to computer programming, you might think I am speaking legalese.