98.8% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » How to switch off screen updating while running Macro
How to switch off screen updating while running Macro
Resolved · Medium Priority · Version 365
Annika has attended:
Excel VBA Introduction course
Excel Power Query course
How to switch off screen updating while running Macro
Last question, I promise!
How do I switch off the screeen updating while a VBA is running? We remember discussing this during the course, however we could not figure out how to do it anymore. Also the online versions I found where not quite working....
Thanks!
Annika
RE: How to switch off screen updating while running Macro
Hi Annika,
Thank you for the forum question.
I assume you want to speed up the time it takes to run thee code.
Turn off screen updating and auto calculations just after the Sub and turn it on just before End Sub
Sub YOURMACRONAME()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
YOURCODE
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Using an equal (=) sign that isn't part of a formulaBefore you type the equal sign, type an apostrophe: ' |