Excel Macro Timer - Easy to Use - Excel VBA Quickie 7

preview_player
Показать описание


This tutorial shows you how to use a simple, yet precise, timer for your macros.

This allows you to speed-test entire macros or parts of macros so that you can work on improving the performance of your code.

The best part about the timer code is that all you have to do is to copy/paste two snippets of code into your macros, no changes are required, and it will run the next time you run your macro. The timer result will also be output into the Immediate Window for easy access and reference.

Excel Courses:

#msexcel #excelquickie #tutorial
Рекомендации по теме
Комментарии
Автор

Just want to share this with you.. this video and your last video (3 tips to faster macros) inspired me to go back through some of my workbooks with macros that run very slowly. To one case in particular, I added a timer with MsgBox (per your example) and timed the macro. It took about 60 seconds to run. I modified the code with some of your tips and got it down to about 30 seconds which was very much better, but still too slow. Then, I dissected my old code and changed the logic entirely and now the macro completes the very same procedure in about 0.5 seconds. So, that is a factor difference of 120 or 12000% between 0.5 seconds and 60 seconds. I can't thank you enough for both the inspiration and the information that helped me make this dramatic improvement. It goes to show that no matter what you think you know, you can always learn something new. Many thanks for all your videos and sharing of knowledge.. much appreciated :)) Thumbs up!!

wayneedmondson
Автор

Excellent tutorial with the TIMER function. Thank you very much!

IvanCortinas_ES
Автор

really amazing magic VBA macro timer I like it !

NeangBona
Автор

Thanks for this.. super useful tip! Thumbs up!!

wayneedmondson
Автор

Cool Tutorial, Great Way To Test And Build Fast Efficient Code...Thank You Sir :)

darrylmorgan
Автор

I really like this ... but the view immediate button is grey out and am not able to see results of the time

CaseyLynn
Автор

Nice, how to clean Immediate window with VBA code ?

chrisk.