How to make your Excel VBA code run 1000 times faster

In this video I am going to take an Excel Macro and make it run 1000x faster.
The code I'm using is a standard code you will see in the real-world. This code reads through 100,000 records and copies the rows which meet given criteria.
Starting with very basic VBA code I will keep improving the code until it runs 1000+ times faster than the original.
If you are creating Excel VBA code for real-world applications then you should take advantage of these proven techniques.
FREE CHEAT SHEET: Get the free cheat sheet on VBA arrays here: (bit.ly/2MXsnz9)
Excel VBA Copy - The Complete Guide to Copying Data: (excelmacromastery.com/excel-v...)
Excel VBA Training
The Excel VBA Handbook Course(TheExcelVBAHandbook.com)
Webinar Archives - 60+ Hours of VBA training(excelmacromastery.com/excel-v...)
Shortcut Keys:
Alt + F11: Switch between Excel and the VBA Editor.
Ctrl + R: View the Project Properties Window.
Ctrl + Shift + 8(or Ctrl + *): Get the current region on a worksheet.
F5: Run the code from the current sub.
F9(or click left margin): Add a breakpoint to pause the code.
Tab: To move lines of code to the right(Indent)
Shift + Tab: To move lines of code to the left(Outdent).
Table of Contents:
00:00 - Slide 1

Пікірлер: 788

  • @wmcnabb
    @wmcnabb4 жыл бұрын

    Paul, you are on fire of late! Some EXTREMELY useful techniques explained very well. I have always been able to tell the level of a developer by what stage they are at in these types of examples. I will be recommending this video to lots of people.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Hi Wyatt, That's actually a great point you make. It's like the evolution of a VBA developer. The begin using Select and activate and evolve through each stage from there.

  • @incobart

    @incobart

    4 жыл бұрын

    @@Excelmacromastery hi, actualy I am looking your other video that explains it .. thanks

  • @prayushijain4087

    @prayushijain4087

    3 жыл бұрын

    Please provide your inputs Check this too kzread.info

  • @TheZenytram

    @TheZenytram

    2 жыл бұрын

    that pretty funny, i'm learning vba for the last 3 month, and this is precisely the steps i was taking it. Although i've stopped at the array level, i know that i'm miles away, too crude in the knowledge about the rest. This advanced filter, to me , looks like that i have found a treasure chest hidden somewhere.

  • @spamdump4459
    @spamdump44594 жыл бұрын

    Saw this video and the next day reworked some macros I wrote for work. Previously if there were more than 20 files you might as well wander down the hall, pour a cup of coffee and when you got back it would be finishing, maybe. In less than a hour of recoding I had it down to 9 seconds! Today I got it under 2 seconds for 70 files.

  • @luciorlc
    @luciorlc3 жыл бұрын

    I thank God because people like you exist.

  • @tequilacollins
    @tequilacollins4 жыл бұрын

    I've been a very advanced VBA programmer for a lot of years, but still learned something new. Thanks.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    That's great to hear Tom.

  • @prayushijain4087

    @prayushijain4087

    3 жыл бұрын

    Check this too kzread.info

  • @PeterrDDark
    @PeterrDDark4 жыл бұрын

    This is absolutely amazing. I went from a run time of 6 minutes to 14 seconds! Thank you so much!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Peter!

  • @Excelmacromastery
    @Excelmacromastery4 жыл бұрын

    Hi everyone! This video has some great practical techniques to help you speed up your code. Please add any comments below. Thank you.

  • @8ballWASD

    @8ballWASD

    4 жыл бұрын

    thank you, Mr Paul! I'm going to implement it in my team. I wish you all the best in your career!

  • @amareshachar4335

    @amareshachar4335

    4 жыл бұрын

    Hello Sir.. I have below code in my file.. it takes about 10 seconds to run.. how can we get it work faster..!? Sub do_it() For r = 7 To 18 Range("K" & r & ":L" & r).Value = Range("I" & r & ":J" & r).Value If Cells(r, "G") "" Then Cells(r, "K") = Cells(r, "G") If Cells(r, "H") "" Then Cells(r, "L") = Cells(r, "H") Next r End Sub

  • @sonderfall1979

    @sonderfall1979

    4 жыл бұрын

    Hi, I have two questions: 1) I have an Excel simulation where I have 15'000 clients and want to run 10'000 scenario. At the end I'll produce four matrices (15'000 times 10'000 times 4). It takes about 36 minutes for 1000 scenarios and I already worked with arrays (as good as I could with my limited knowledge). Do you think it is possible to store up to 0.6 billion data records in Excel or do you have a tip what to do because Excel almost breaks down ;-). Should I "outsource" data into CSV-spreadsheets instead? 2) Do you know a good random number generator in VBA. I tried to use the "built in" random number generator but somehow it didn't work with my array code.

  • @plumberski8854

    @plumberski8854

    4 жыл бұрын

    Read that Excel 2016 32 bits has a file size problem running VBA when it is greater than 50 Mb. True? If so, why? 50 Mb is not that big.

  • @prayushijain4087

    @prayushijain4087

    3 жыл бұрын

    Very nice video... Please provide your inputs kzread.info

  • @supplychainsys
    @supplychainsys4 жыл бұрын

    Paul, you are one of the best overall coders I have found. You think out all the critical issues around a successful project - design, operational speed efficiency, code maintenance, user experience and project construction. It would be a joy to have you on or leading any team I have in the future.

  • @christophseyfarth8018
    @christophseyfarth80184 жыл бұрын

    One of the best and most useful Excel Videos found on the entire internet. Well Done and a big THANK YOU.

  • @Lutfitince
    @Lutfitince4 жыл бұрын

    AWESOME!!! That's the point of macros - speed! I am happy there are ppl like you

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad to help

  • @brad7914
    @brad79144 жыл бұрын

    Paul this is probably best Excel video I have ever watched - what you have shown is just amazing and something that will benefit me massively - thanks so much for sharing and keep up the great work!!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Brad. Glad you have got so much use from this video.

  • @stevegarside5026
    @stevegarside50262 жыл бұрын

    Hi Paul, Your videos and the way in which you explain them is to the highest level! Thanks for making our lives easier in the deep sea of code which we all love (some may hate I am sure haha).

  • @CharleyGR
    @CharleyGR4 жыл бұрын

    Thanks a lot mate! I watched this video and two days later I got to apply those tips to a code that was taking around 5s to run. After making the changes it runs instantaneously which is how it was supposed to be. Keep up the good work!

  • @Apsis0215
    @Apsis021510 ай бұрын

    Fantastic overview and breakout of the code! I never realized the cell to cell was so slow and traditional coding was so much faster (Arrays). That element collector trick is also very amazing!

  • @jeroldjay1711
    @jeroldjay17114 жыл бұрын

    I really wish I had watched this two years ago!! It would have saved me a lot of time learning some of these techniques the hard way!!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    I wish I had watched myself 10 years ago😛

  • @paulblackwood1273
    @paulblackwood12732 жыл бұрын

    I really found these tips super easy to use and they allowed me to improve my spreadsheets performance 380x. Reduced run speed from 45 mins to 8 sec! Woohoo. The best one by far was reading the worksheet data into an array and processing it in memory rather than accessing the sheet. These instructions were so clear and easy to follow. Amazing. I even implemented the module timing in my code to target savings.

  • @meiwong5615
    @meiwong56154 жыл бұрын

    Best VBA tutorials I’ve seen so far!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks for your comment Mei

  • @orgilmas
    @orgilmas3 жыл бұрын

    I feel happy that I use these techniques all the time when vba calculation time matters on some projects.

  • @esrAsnataS
    @esrAsnataS2 жыл бұрын

    As someone who loves Macroing :) everything I do in excel and who is totally self taught with the massive help of google, that was inspiring. One of the most helpful things I have seen. Thank you!!

  • @andrewbarron6374
    @andrewbarron63744 жыл бұрын

    Outstanding! I have been doing it the slow way for years.

  • @onurtunc9468
    @onurtunc94682 жыл бұрын

    Paul, you are always great teacher, i spent lots of times for copy and pasta data with criteria before but now this is amazing. Awesome. Thank you man.

  • @matthewverhage1282
    @matthewverhage12824 жыл бұрын

    Wow, one of the best VBA videos I've ever seen. Very helpful and everything explained very straight forward! I like that I wouldn't necessarily use everything, but the step by step way you explained each thing you did makes it easy to apply where it makes the most sense. Well done!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Matthew

  • @EduardoRibeiroEdu
    @EduardoRibeiroEdu2 жыл бұрын

    Man, this is the BEST VIDEO ON VBA in youtube! Thanks a lot.

  • @jeromecordel5908
    @jeromecordel59084 жыл бұрын

    A major work ! Very helpful and easy to integrate in all VBA code. Thank you so much

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    No problem Jerome.

  • @hafizsiraaj
    @hafizsiraaj4 жыл бұрын

    That is some very valuable techniques! Will definitely be using them to write/REwrite macros. Thanks! 😊

  • @MarkCBB86
    @MarkCBB864 жыл бұрын

    Probably one of the best VBA help videos I have seen, You explained each part very clearly without over speaking, Thank you. Things I learned from the video (MicroTimer, Resize, populating an Array straight from a range). I use assignment often, but looking forward to using it with Resize now. Favorite part of the Video is jumping to just using Advanced Filter - Sometimes we over code for things that there is already a built-in function for. Thanks again!!!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Mark. That is high praise indeed. I'm glad you got so much from the video.

  • @theexcelproject6973
    @theexcelproject69732 жыл бұрын

    This is one of the most genuinely helpful contents I have ever come across.

  • @datenshi1444
    @datenshi14444 жыл бұрын

    This is exactly what I needed. Spot on. Thank you so much!

  • @alphonsoba8171
    @alphonsoba81714 жыл бұрын

    As usual, thanks Paul. While I use the web a lot for examples, you are the only one I keep track of. Love your stuff.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Appreciate the feedback Alphonso.

  • @blakemaster5054
    @blakemaster50544 жыл бұрын

    Thanks Paul. This is the best video I've ever see in learning VBA for mastery. Thanks, i will watch all your 13 videos.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks for your support Blake.

  • @BrendanOD
    @BrendanOD4 жыл бұрын

    Instead of setting calculation to automatic at the end, it’s best practice to capture the current calc mode at the beginning. And set it back to that at the end. Manual calc may have already been set in Excel, a macro that turns it back on can be an annoyance.

  • @aguswidi9316

    @aguswidi9316

    4 жыл бұрын

    Agree with brendan

  • @wilgo58
    @wilgo584 жыл бұрын

    Thank you sooo much. You have taken my code and shortened it's run time by quite a bit :) I still need to learn and understand the Advanced Filter a little better, but you have helped improve my workload significantly. I truly appreciate it :)

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Zach. Glad to help.

  • @dr.frankpeffekoven9834
    @dr.frankpeffekoven98344 жыл бұрын

    Thank you for the great video. I will now search for videos about advanced filters. With this technique I could solve the runtime problem with my program.

  • @user-dd1hj2rp7c
    @user-dd1hj2rp7c4 жыл бұрын

    Here's a fan from Taiwan!! Thanks for this useful video, I learned a lot.

  • @medasbabu
    @medasbabu2 жыл бұрын

    Thanks Paul, Just completed coding to process 2.5 lakhs of records, its taking quite a lot of time, had to split it into 5 sets and run the code. This video provides, clear picture where i can improve my code and speed up the process. Thank you very much...

  • @martiancocian6301
    @martiancocian63012 жыл бұрын

    I am speechless. This is wonderful stuff. Thank you for sharing. God bless!

  • @johnwatkins39
    @johnwatkins394 жыл бұрын

    OMG this is an awesome video. All the stuff I do at my work will be so much faster.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks John.

  • @yveslitalien
    @yveslitalien4 жыл бұрын

    Brilliant! I just learned lots and just wish I had known this a long time ago!

  • @martinargimon730
    @martinargimon7303 жыл бұрын

    Thanks for this tutorial. Is a MUST for all 'amateur' programmers like me. Excellent and Thanks once again Regards. Martin ( South Africa)

  • @atchoum87
    @atchoum874 жыл бұрын

    Hi. i'm in the middle of creating an output sheet with a bunch of copy/paste from different sheets... Most useful youtube recommandation EVER! Thanks for the tips, it'll be very usefull

  • @free3690
    @free36902 жыл бұрын

    This is an awesome improvements. I did not know there were so many ways to speed up the code! Thanks for sharing these tips

  • @danteencinas7020
    @danteencinas70202 жыл бұрын

    Wow... Nice... Advanced filters blew my mind! Thank you!

  • @jawalim1996
    @jawalim19964 жыл бұрын

    love from first video.. This is impressive and extremely useful. You are outstanding in both, knowledge and ease of explaining complicated stuff. Thank you for sharing. Would love to see more of practical videos like this from you.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're Wecome Jawali.

  • @jennydrumm7223
    @jennydrumm72234 жыл бұрын

    This is my first time seeing one of your videos and I'm impressed! Your explanation made complete sense, at least while I was watching and listening to you. I'm going to have to watch it a couple more times to get it to stay in my head, LOL! But your directions are clear, pretty easy to understand and the visuals going right along with your narration is VERY helpful to me! Thanks!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks for the feedback Jenny. I'm glad you got so much value from the video.

  • @IanLockley
    @IanLockley4 жыл бұрын

    Paul, you've blown me away! I'll be using these techniques to vastly improve the speed of my current Excel projects. Some of my projects take 10 to 15 minutes. This is bonkers! I've been writing the most inefficient code possible.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Ian. Don't worry we've all been there. The Copy and Paste method is so common place in VBA web examples that when I discovered assign I was sure it couldn't possibly be better than Copy and Paste.

  • @user-sv7pj5hx8t
    @user-sv7pj5hx8t Жыл бұрын

    Hats off to you sir. Big help. Im running a small engineering calculation. but still there are hundreds of sheets need to be duplicated. these tips improve it by a lot.

  • @wintert6568
    @wintert65684 жыл бұрын

    Great stuff! I use some of those techniques myself, the way you explained everything was definitely on point. My only critique would be to have the code comparisons side by side instead of flat out rewriting so viewers can see the difference if they pause the video. Might be helpful to some.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Winter. Glad you enjoyed it.

  • @eltonm.t.873
    @eltonm.t.8733 жыл бұрын

    The advantage of using arrays is that beyond being the second fastest, one could write text files (csv) out of the data collected fom the source sheet, parse to databases, etc . Moreover, one could cancatenate values from different columns, perform math operations between column/rows values, etc, all from the dataset in memory. In a nutshell, one could make a lot of things out of the array data in memory as opposed of using the Advanced Filter method which is fast but you don't have the control of the aquired data from the source sheet. Adv. Filter is fast but only transfers data from one sheet to another as it is, then you'd have to process the dataset again if you wanted to do more things with it. I personally have used the array method for the reasons stated above, unless I just want to filter data.

  • @sethvondardel5863
    @sethvondardel58634 жыл бұрын

    Thank you so much for your great videos! You are great at explaining. Im learning a lot

  • @JohnOvens
    @JohnOvens4 жыл бұрын

    Hi Paul, this is absolutely fantastic - I have watched it several times and made copious notes. I hope to be able to implement it in my personal stock recorder program John

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Hi John, Great to hear from you as always. Thanks for the feedback. I will be releasing plenty of new videos in the coming weeks so key an eye out for them. Regards Paul

  • @dst47
    @dst474 жыл бұрын

    Much appreciated. My excel calculation time has dropped from 20 mins to 5mins. It saved lot of time of my life. Thank you so much.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad to help Deepak

  • @Greenham1988
    @Greenham19884 жыл бұрын

    As the only accountant at my last two jobs that knew VBA, it's extremely refreshing to know others are using VBA at this level. I've always referenced your site, I did not know you had a KZread channel, I've been on here just going through videos for (Repeating them of course) the last two days. Thank you so much for sharing this knowledge.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome. Glad you like them.

  • @manjunathmahamuni4120
    @manjunathmahamuni4120 Жыл бұрын

    wow !! The Awesome techniques I got today from your channel, Thank you very much for this great knowledge !!

  • @sacha7407
    @sacha74074 жыл бұрын

    I program in VBA for over 10 years and I have learned again some things. Thank for this video very clear… even for a french with poor english

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad you like it Sacha.

  • @MyFlopsi
    @MyFlopsi4 жыл бұрын

    A big thanks from Germany for this very useful und powerful way to code, people like you make this world better!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Philipp

  • @jeremybuchanan4759
    @jeremybuchanan4759 Жыл бұрын

    Thanks for this - I look forward to applying advance filter on current project.

  • @jeffchen6556
    @jeffchen6556 Жыл бұрын

    You are the best VBA teacher of me, many thanks

  • @EliasGonzales
    @EliasGonzales4 жыл бұрын

    Bravo!! great tutorial. It help me a lot to improve my data processing from multiple worksheets. Thanks a lot!

  • @wayneedmondson1065
    @wayneedmondson10654 жыл бұрын

    Hi Paul.. this video was super interesting and useful.. really like how you presented it logically in sequence with Advanced Filter being the speed king. Thanks for the insights and valuable tips and tricks to speed code execution. Looking forward to more. Thumbs up!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    "Speed King" - that's a great title.

  • @ericjudd9198
    @ericjudd91984 жыл бұрын

    Thank you for sharing this, Paul. These tips are extremely helpful.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome Eric.

  • @rasmusravnsbjergbyriel2846
    @rasmusravnsbjergbyriel28464 жыл бұрын

    I think this may have been THE best VBA advice I have ever seen. Working in a large company everyday, sometimes handling hundredthousands of lines of data, I can't wait to implement these advice in my future work. And maybe even rework some of my existing code.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad you like it.

  • @CeliaAlvesSolveExcel
    @CeliaAlvesSolveExcel4 жыл бұрын

    Wonderful method comparison! Thank you, Paul! I use advanced filter a lot in my code but never measured the time difference when compared with the other methods.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Celia. Glad you like it.

  • @itsdaj
    @itsdaj11 ай бұрын

    This is the double slit experiment for Excel. Thank you for breaking this down.

  • @ZEUSAIMIGHTY
    @ZEUSAIMIGHTY4 жыл бұрын

    Wow, I literally ran my VBA exactly how you said beginners do but that's only because that's how the record macro feature told me to. Very helpful!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Nick. The macro recorder code is very different than real-world code. It leads to a lot of confusion.

  • @chrishartnell8936
    @chrishartnell89364 жыл бұрын

    Thanks Paul, I like your clear step by step style. This bite sized video will have a significant impact on my approach to some tasks and see I will have to rewrite a batch of my existing routines! Using the advanced filter looks like a much more efficient,simpler and cleaner approach than pivot tables/ordinary filters to do the heavy lifting.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Great you found it so useful Chris. Advanced filter are great for copying and filtering data in record format. They are not only fast but require less code and it's simple to select or reorder columns. The one advantage that pivot tables have is that they group data whereas the advanced filter simply filters it.

  • @vemaakademia427
    @vemaakademia4274 жыл бұрын

    Paul, this is great! Thanks. I learned something new and useful today.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad to hear it. You're welcome.

  • @321tryagain
    @321tryagain4 жыл бұрын

    This is amazing. I got suggested your video by youtube. Most VBA videos are too simple for me. I had no idea that turning off calculations would give such a drastic improvement. It cut my execution time from 161 seconds to 1.2 seconds

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    That's great to hear:-)

  • @ThinkBigToday
    @ThinkBigToday4 жыл бұрын

    Great video, one of the better videos I ever watched on VBA and I have been coding / learning for few years

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks very much.

  • @kaisun1661
    @kaisun16614 жыл бұрын

    Thank you, I tried the first two steps, and increase 10 fold of the speed of my worksheet. Thank you for sharing!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    That's great to hear Kai. Thanks for the feedback.

  • @Mraungnaingthu1
    @Mraungnaingthu12 жыл бұрын

    Your live explanation is precious for me.

  • @shohanmohammadwasiuzzaman1111
    @shohanmohammadwasiuzzaman11114 жыл бұрын

    Clearly, the guidelines have improved the speed of my code... excellent & simple techniques... thanks

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome Shohan

  • @danfoltz9947
    @danfoltz99472 жыл бұрын

    This is amazing. I wish I had found your site some time ago. I do have a couple of applications that I want to update. I am anxious to see how fast I can make them run. Thanks for this video.

  • @twospooky6266
    @twospooky62664 жыл бұрын

    Eye opening stuff! Thanks Paul.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome.

  • @MalinaC
    @MalinaC4 жыл бұрын

    I love this advanced filter trick! Thanks for sharing!

  • @Excelmacromastery

    @Excelmacromastery

    3 жыл бұрын

    Glad you liked it!

  • @pe00100
    @pe001004 жыл бұрын

    I write lots of VBA code and I learned new tricks. I never used the advanced filter before. Thanks for creating this overview.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad it was helpful!

  • @freeliberalminds
    @freeliberalminds Жыл бұрын

    Great VBA helpful video tips from you sir Paul.

  • @lyonhard1
    @lyonhard14 жыл бұрын

    Thanks Paul, Timely informative, and pertinent, as usual.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks lyonhard1.

  • @TheSybolt
    @TheSybolt2 жыл бұрын

    Great stuff Paul, thanks a lot for this video.

  • @gopigopichand4379
    @gopigopichand43794 жыл бұрын

    Very valuable video...I too recommend..to my friends... Every one face these issues of slow running of macro.. Thanks for your time..

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks for sharing Gopi.

  • @lfqme
    @lfqme4 жыл бұрын

    Paul, thanks a lot for share this knowledge with us. This is really useful for the daily job. Go ahead with your valuable work spreading all your knowledge. 👏👍

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Luis.

  • @giacominoveltri4188
    @giacominoveltri41884 жыл бұрын

    I was aware of some of the tricks, but not really aware of the really big ones. Thank you! Well done.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome.

  • @tocobern
    @tocobern4 жыл бұрын

    Brilliant, well explained. I've not used vba for years and I was helping someone out with something urgent for their work. I got what they needed sorted out but my process was running so slow. They are giving a demonstration today but it's been annoying me that it's taking around 2.30mins to run through about a thousand records. Now I see its because I am making all these select cut paste onto different worksheets. I will use some of the techniques you so brilliantly explained. So I had to subscribe. Thanks again.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks for the feedback Tony.

  • @ricomajestic
    @ricomajestic Жыл бұрын

    This guy definitely knows his stuff! I am impressed.

  • @zachariahkane6833
    @zachariahkane68334 жыл бұрын

    application.screenupdating = false is a must for every VBA user.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    That's true.

  • @andrewlockwood6102

    @andrewlockwood6102

    4 жыл бұрын

    @@Excelmacromastery Only caveat is that whilst developing code, if it crashes and doesn't get to turn screen updating back on, you can find yourself stuck and potentially have to kill the program and lose any unsaved code. Sometimes it's prudent to only include the on/off code after you have solidified your code. My 2 cents worth. :-)

  • @thatguythatdoesstuff7448

    @thatguythatdoesstuff7448

    4 жыл бұрын

    @@andrewlockwood6102 In this case, you can create a macro in your personal.xlsb that turns all of it back on. You then designate that macro as a custom button in your quick access toolbar. Something goes wrong, runtime error or whatever, click the button, everything is turned back on.

  • @megapro125

    @megapro125

    4 жыл бұрын

    @@andrewlockwood6102 it only makes you unable to interact with the normal excel UI but not with the VBEditor Window. So just quickly write a new macro with "application.screenupdating = true" and everything is working fine again

  • @phpvbacoder9000

    @phpvbacoder9000

    3 жыл бұрын

    Best practice is always to implement error handling and Set back to defaults there

  • @dimonovych
    @dimonovych4 жыл бұрын

    nothing new for me, but i like how consistently you explain) good job, definitely.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Dimon.

  • @guilherme031109
    @guilherme0311094 жыл бұрын

    This is incredible awesome. Another trick I got, was about use the part of enables and disables in a unique sub and just call then. Thanks for all

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad to help Guilherme.

  • @anilthakkar2372
    @anilthakkar2372 Жыл бұрын

    You are just Great Sir with immense knowledge

  • @gestionsigdata
    @gestionsigdata3 ай бұрын

    Perfect. Excellent. Thanks a lot to take the time to teach us how to become our codes faster. Greetings from Venezuela. New Follower.

  • @JanBolhuis
    @JanBolhuis4 жыл бұрын

    Awesome video and explanation. Thanks a lot for sharing this goldmine.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    You're welcome Jan

  • @darianleduc
    @darianleduc3 жыл бұрын

    Excellent! Thx. Extremely important concept in VBA

  • @ashokanselliah9571
    @ashokanselliah95714 жыл бұрын

    Fantastic...really useful video. Wish to have more like this.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    More on the way Ashokan.

  • @pddhavale
    @pddhavale4 жыл бұрын

    Great work and Superb method to explain in fluent and descent manner,Love you .Salute for attitude and making it available for all.Thanks

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    thanks very much Pradeep

  • @jenshaglof8180
    @jenshaglof81804 жыл бұрын

    Changing from reading directly from the sheet to loading the range into an array sped the macro up from 1 min 15 sec to only 1 second. Couldn't almost believe it! Amazing! :D

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Nice work!

  • @iqbaluk
    @iqbaluk4 жыл бұрын

    Loved this Advanced filter

  • @ronaldgerard7778
    @ronaldgerard77784 жыл бұрын

    I knew some of them, but not advancedfilter 😲, simply amazing, thx for sharing this!

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Glad to share Ronald.

  • @WeisSchwarz
    @WeisSchwarz4 жыл бұрын

    Great video!! I just watched this one video of yours and I subscribed. Good job!!

  • @jacek1366
    @jacek1366 Жыл бұрын

    Great tips, thank you!

  • @aguswidi9316
    @aguswidi93164 жыл бұрын

    Thank's a million, now I'will review all vba macro code cause now i'm using excel 2016, which is slowing down my macros.

  • @tonysimoes9121
    @tonysimoes91214 жыл бұрын

    That was impressive. Just turning off the calculations and screen updates saves a considerable amount of time.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Tony

  • @arsenik0890
    @arsenik08904 жыл бұрын

    Great video! I was quite hesitant on using arrays in the past as I was considering the additional resources it would take considering the variant datatype. But that advanced filter is a game changer and is kinda new to me. I would love to try it soooon.

  • @Excelmacromastery

    @Excelmacromastery

    4 жыл бұрын

    Thanks Arsenio

  • @andresbambarenalcala8866
    @andresbambarenalcala88664 жыл бұрын

    EXCELLENT, WONDERFUL, THANK YOU SO MUCH FOR YOUR CONTRIBUTION OF KNOWLEDGE