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

how switch off screen

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

ResolvedVersion 365

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:

Shortcut for deleting all comments in a spreadsheet

If you have entered multiple comments into a spreadsheet and wish to delete them all at once, you can achieve this by:

1. Holding down Ctrl, then Shift, then O - this will select all cells containing comments in the worksheet you are looking at.

2. Right-clicking on one of the selected cells, and selecting Delete Comment from the menu that appears.

3. Clicking anywhere else in the spreadsheet to deselect comments - all comments should have disappeared from the spreadsheet.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.