how switch off screen

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum 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

resolvedResolved · 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 courses

 

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
What does 'Resolved' mean?

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 formula

Before you type the equal sign, type an apostrophe: '
Then type your equal sign: = (and anything else you want to add after your equal sign)
Press ENTER.

(the apostraphe will disappear

View all Excel hints and tips


Server loaded in 0.08 secs.