One of the most common requests from people writing VBA code in Excel is “how do I speed up my VBA code?”. The Speeding up VBA Code series aims to give you some quick and easy to implement techniques to speed up your code.
In this free beginner level Excel tutorial we use Microsoft Excel 2016 and you will learn:
- How to set up various subroutines and functions that will time how long a given piece of code is taking using the “Timer” VBA function;
- How to set up your VBA code to grab certain application level variables (and allow us to restore them);
- How to switch your calculation mode from automatic calculation to manual calculation;
- How to switch your code so it does not calculate before save;
Once we do all of the above we then demonstrate some performance improvements from running an example recorded macro (not the best example but it will do for now).
The video uses Excel 2016 but the same steps are used for Excel 2010 and Excel 2013.
If you enjoyed this short tutorial then please add a comment, start a discussion, “Like”, “Favourite” or “Share” the tutorial and subscribe to my channel.
Thanks for watching!