Excel Macros & VBA - Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 4 июн 2024
  • 🔥 Learn Excel in just 2 hours: kevinstratvert.thinkific.com
    In this step-by-step overview, learn how you can eliminate repetitive and boring tasks in Microsoft Excel using something called macros and VBA, or Visual Basic for Applications. With macros, you can automate your work in Excel, which will help you save time and effort. Macros are an extremely powerful tool that will take your usage of Excel to the next level.
    In this video, we'll start with how to:
    • Record a basic macro
    • How to run your macro
    • How to test your macro
    • How to access your macro in any spreadsheet
    • And even how to add if statements and loops, and we'll look at multiple types of loops
    👋 Additional resources
    - Sample spreadsheet to follow along: 1drv.ms/x/s!AmxrofZZlZ-whM1lH...
    - Excel shortcut keys: support.microsoft.com/en-us/o...
    - Learn the fundamentals of Excel in just 2 hours: kevinstratvert.thinkific.com
    ⌚ Timestamps
    0:00 Introduction
    0:55 What is a macro & when should you create one?
    3:28 Record basic macro
    6:47 Run your macro
    9:55 Save macro enabled workbook
    10:30 Open macro workbook
    11:12 Absolute vs. relative references
    13:18 Edit the VBA code that powers your macro
    18:32 Turn on developer tab
    19:32 Personal macro workbook for anywhere access
    22:11 View VBA code while recording
    24:02 If statement
    26:57 For loop
    30:50 Input box
    33:00 Do while & do until loops
    35:57 Bring it all together example
    47:01 Combine macros into one
    48:33 Turn off screen updating
    49:23 No undo for macros
    49:42 Wrap up
    📃 Watch related playlists
    - Playlist with all my videos on Excel: • ❎ How to use Excel
    🚩 Connect with me on social
    - LinkedIn: / kevinstratvert
    - Twitter: / kevstrat
    - Facebook: / kevin-stratvert-101912...
    - TikTok: / kevinstratvert
    - Instagram: / kevinstratvert
    🔔 Subscribe to my RUclips channel
    ruclips.net/user/kevlers?...
    🎬 Want to watch again? Navigate back to my RUclips channel quickly
    www.kevinstratvert.com
    🛍 Support me with your Amazon purchases: amzn.to/3kCP2yz
    ⚖ As full disclosure, I use affiliate links above. Purchasing through these links gives me a small commission to support videos on this channel -- the price to you is the same.
    #stratvert
  • НаукаНаука

Комментарии • 406

  • @KevinStratvert
    @KevinStratvert  2 года назад +50

    🏫 Learn the fundamentals of Excel in just 2 hours: kevinstratvert.thinkific.com
    ⏭ Watch next - playlist with all my free tutorial videos on how to use Excel: ruclips.net/p/PLlKpQrBME6xLYoubjOqowzcCCd0ivQVLY

    • @thegossiploverz
      @thegossiploverz 2 года назад +2

      Can you make solver run in loop for all the rows in excel? Looking forward. TIA!

    • @muletowndumpsters
      @muletowndumpsters 5 месяцев назад

      Finally, someone my brain can grasp. Looping has had me hostage for years. Thanks a bunch.

    • @rashidhublikar9707
      @rashidhublikar9707 12 дней назад

      ##

  • @zacharykrawczyk1218
    @zacharykrawczyk1218 2 года назад +425

    As someone with ADHD I really appreciate your speaking style, the pacing between words is just right! Everything spoken has meaning and is very clearly said. A+ tutorial!

    • @rebeccadoll-suppes832
      @rebeccadoll-suppes832 2 года назад +16

      Yes! This is the "secret sauce" to this video - sets it above the rest for that reason alone.

    • @qrsimon
      @qrsimon Год назад +1

      Coowl

    • @nguyen3276
      @nguyen3276 Год назад +6

      Him: *pauses*
      My brain: we can totally apply this to….. oh wait there’s more, write that down!!!

    • @mala3167
      @mala3167 Год назад +6

      Everybody be diagnosing themselves with ADHD these days :(

    • @_DinoHat_
      @_DinoHat_ Год назад +1

      Omg is that a thing?, is that why when someone says three sentences without a break i cant keep track?

  • @enerialufan
    @enerialufan 2 года назад +7

    I recently started my data analysis journey and I have been waiting for this video for forever. Thanks Kevin!

  • @saumitrad
    @saumitrad 2 года назад +112

    You, Kevin, are a fantastic teacher. Unlike most of these youtube tutorial - you do not waste much time on expounding, you do not miss any beat / important step. You are exceptionally intuitive & exhaustive - any question that I had, you were on it just a second away. Keep up the great work.

  • @omarad
    @omarad Год назад +7

    Simply AMAZING! The way you structure your videos by starting with basics and then adding up topics one by one is GREAT! Thank you Kevin!

  • @tocodelray
    @tocodelray 6 месяцев назад +8

    I subscribed because of how clear and useful this was. No distractions, no jokes, just an hour of solid information. I hope every educational youtuber follows this formula.
    I struggle to pay attention and your style kept me on track the whole video.

  • @mvc9871
    @mvc9871 2 года назад +15

    You, Kevin, are awesome! I wish every one of my teachers could communicate information as easily as you do. You are gifted, and you have made me love Excel. Thank you!

  • @alvixtan1617
    @alvixtan1617 2 года назад +5

    It's difficult to have one video in RUclips with no dislikes. You deserve this.

  • @jamesstreeter43
    @jamesstreeter43 Год назад +1

    I have been using Excel for over 20 years and I have learned so much from this video. Your teaching style really works for me, thank you.

  • @chiomakamalu2890
    @chiomakamalu2890 9 месяцев назад +1

    I'm glad I found this RUclips channel. Kevin does not miss anything and keeps it on point with relevant information.

  • @NZDLo
    @NZDLo 9 месяцев назад +2

    This was fantastic - I've used Excel since inception, but have never really gotten into macros. Love your teaching style - will go look for more of your videos now!

  • @hollyrace3998
    @hollyrace3998 11 месяцев назад +2

    I have watched, and rewatched, so many of your videos. I love your playful tone and fun sample sheets to help viewers to learn by watching and doing, whatever works best for them. Your video on SQL literally helped me get a promotion. I am constantly sending links to others who want to learn more.

  • @hanzelpalacio3756
    @hanzelpalacio3756 11 месяцев назад +3

    I am so thankful that I stumbled upon your video, Sir Kevin. You make complicated applications easier to understand. There is obviously the most important ingredient in the way you present, patience. Truly, your way of teaching is so God-like. Thank you to the highest level.

  • @ricardoluizmarcello
    @ricardoluizmarcello Год назад +3

    Kevin, I appreciate a lot the way you bring us all this information! I have no words to thank you. I wish you all the success you deserve

  • @proudlycanadian3023
    @proudlycanadian3023 Год назад

    I am so amazed and astounded of how impeccably flawless/immaculate of my knowledge if Visual Basic is! It is of absolute perfection! Thank you for the perfect lesson!

  • @FTSociety
    @FTSociety 10 месяцев назад

    Thank you! I've been reluctant to learn VBA because it looked complex, but your explanation was very clear and easy to follow, now I want to learn more, thank you!

  • @SavageGothamChess
    @SavageGothamChess 2 года назад +36

    The Legend is back with more Excel videos!!!!
    0:00 Can feel the excitement when you said today.
    Usually when making long videos at around the last couple of minutes you wouldn't understand anything because the person who records starts to get frustrated and tired. But on Kevin's Videos it is the opposite. Well explained video. And yes I am still not a wizard in Excel but I am nearly there thanks to you. You are not on the way to a million, you are sooo close to 1 million subscribers. Always here to support you!!!

  • @morgannweke7771
    @morgannweke7771 2 года назад +3

    This was super helpful, Kevin! Thank you for taking the time to share quality content.

  • @bencecserkuti7110
    @bencecserkuti7110 Год назад +2

    The number of times I am watching you, I am considering you for the Employee of Year award even though you are not working here.

  • @Gaboch8719
    @Gaboch8719 2 года назад +3

    What a professional video made by a genuine professional! Congratulations and thanks a lot Kevin!

  • @TylerStanczak
    @TylerStanczak 2 года назад +6

    Such a helpful tutorial. None of us enjoy doing those repetitive tasks. Thanks Kevin :)

  • @TruthofDilly
    @TruthofDilly 2 года назад +3

    Really like the way you teach, your vids have taught me so much…you are someone that is truly intelligent as you can make complex things simple, not msn7 excel teachers do this, your on of the very few do thank you, I’m so grateful to you.

  • @makarand1985
    @makarand1985 Год назад

    Kevin you are the BEST teacher I come across till date GOD BLESS YOU !!!

  • @jamesarchieodena4107
    @jamesarchieodena4107 9 месяцев назад +1

    This is one of the three Excel vloggers that I always watch together with lyka and kenji because of its pacing and very informative and real life based scenarios. ❤❤❤

  • @HarjeevanSingh-Tech
    @HarjeevanSingh-Tech 2 года назад +11

    Amazing video Kevin and it's really great to see you again! 😁😁 Macros are really awesome because it can make a repetitive task extremely easy 😎

  • @cpt.benfox
    @cpt.benfox 2 года назад +3

    Great job Kevin! As always each video is informative and extensively educational.

  • @alihameed5389
    @alihameed5389 2 года назад +1

    An excellent educator, thanks for all the work you are doing man!

  • @adelle1441
    @adelle1441 2 года назад +3

    So far one of the BEST tutorial video and Trainer in RUclips. Very informative and well explained with the right pace and level of enthusiasm.

  • @chajam
    @chajam 2 года назад

    thank you so much for this! I needed some light on how to edit macros (I only knew how to create it), now it feels less intimidating.

  • @579maheshreddy4
    @579maheshreddy4 11 месяцев назад

    This is the best course that I have ever seen on RUclips for excel vba,
    Thank you so much my man for helping me to understand the macros 😊😊

  • @cenevspeed
    @cenevspeed 2 года назад +6

    Microsoft provides so many new features in their products and thankfully we have such a wonderful teacher to explain them 😎
    Thank You Kevin 🔥

  • @vramarathnam
    @vramarathnam 2 месяца назад

    Thank You Very muck Kevin. Excellent teaching gradually increasing the syllabus ! i am an xl user at a surface level . Thanks to your video i did macros yesterday and happy to see it working. Thank You once again

  • @johndn9238
    @johndn9238 2 года назад +1

    This is really brilliant for macro novice like me and going to save me tons of time! Thank you very much indeed.

  • @hankgrimes1806
    @hankgrimes1806 2 года назад +38

    Hello, Kevin. I've watched many videos promising to "teach" macros and VBA, and I have to say that yours are some of the very best! Do you have any courses planned where you offer a deeper dive into VBA? I'd be happy to sign up for a full course if you were to offer any!! Thank you, and I hope to see more

  • @rotethongvanit
    @rotethongvanit Год назад +2

    Thanks Kevin for the step by step tutorial.

  • @kwakupoku3719
    @kwakupoku3719 2 года назад

    God richly bless you. You make these scary excel tools really easy. Here I am on my computer easily doing pivot table, xlookup and macros with ease. This is the course I took in college but rate my excel experience as intermediate. Thank you and thank you again.

  • @elsietang7039
    @elsietang7039 Год назад

    Thanks Kevin. You are really a great teacher. I really like watching your video. Very informative and no non-sense at all. Very clear. 👍

  • @glengreen8
    @glengreen8 Год назад +2

    ❤ really valuable lesson. Macros are awesome and you are great teacher. Much respect.

  • @SheikhMuhammadNawaz
    @SheikhMuhammadNawaz 2 года назад +2

    The way you explain is awesome..... I really like your way of teaching and making us understand.... Thank you!

  • @TheSuperEmpoleon
    @TheSuperEmpoleon Год назад

    This is probably the best tutorial video I’ve ever watched. Thanks!

  • @lawmontgreen8860
    @lawmontgreen8860 2 года назад

    What an amazing tutorial. I’m learning so much. Thank you.

  • @mariamarrero6611
    @mariamarrero6611 6 месяцев назад

    One of the best and well explained videos teaching VBA! thumbs up!

  • @georgywordrighter5662
    @georgywordrighter5662 2 года назад

    Cannot begin to express how impressed I am . I was given someone's spreadsheets to update and one of course was misaligned as stacked data. I was forced to cut and paste incoming additions in the stacked data (sadly not cookies)and spent hours until now. Bam.... I can do this in no time - meaning more coffee breaks for me, smiles from the boss and I wish I could send Kevin one of his choice (coffee not boss needless to say)

  • @maximilianosalibe1710
    @maximilianosalibe1710 2 года назад

    I really loved this video, Kevin! It's specially helpful to understand and take profit of the advantages of using Excel!

  • @OrientalMelodies2010
    @OrientalMelodies2010 Год назад

    Your way of explaining the subject is outstanding, many thanks for the awesome tutorial :)

  • @sairaj6875
    @sairaj6875 Месяц назад

    Thank you so much, Kevin. This is so helpful.

  • @wilkinsbrito5168
    @wilkinsbrito5168 2 года назад

    Thank you for this video! I just started to properly utilize PC Apps/Software.

  • @tahamadani2462
    @tahamadani2462 Месяц назад

    You are a great teacher. Thank you for the video

  • @sameertawfiq3420
    @sameertawfiq3420 2 года назад

    Thank you so much!! I learn a lot through your videos even things I thought I already know.

  • @colinracheljustpootling7468
    @colinracheljustpootling7468 2 года назад +1

    Wow! Just brilliant and so well explained. Thank you

  • @georgem.6076
    @georgem.6076 2 года назад

    Thank you, Kevin. I feel a little less worried about starting my new job next week.

  • @akashsharma4746
    @akashsharma4746 2 года назад +2

    Time well spent 🔥, learned a lot about Marcos !

  • @YeungKaHung
    @YeungKaHung 2 года назад

    Extremely useful Excel tutorial. Great thanks!

  • @johnsamte830
    @johnsamte830 25 дней назад

    Great video Kevin. Thank you!

  • @9102010
    @9102010 Месяц назад

    Hi Kevin,
    Thank you very much for the good explanation.
    It was very easy to follow, very knowledgeable, and above all a good voice and the right speed for me. PERFECT!

  • @SayedSquadOfficial
    @SayedSquadOfficial 10 месяцев назад

    I wish youtube had multiple or unlimited likes option. I really want to give this guy a million likes. Great way of Explaninig sir. Please do not stop uploading these videos. Really helpfull. Thanks a lot...

  • @syed_hussaini
    @syed_hussaini Год назад

    This is the first time I have watched such a lengthy video on Macros, and I must say it was truly worth it.

  • @Missyvjd
    @Missyvjd Месяц назад

    Thanks so much for this....I needed help to understand relative references

  • @perry2102
    @perry2102 11 месяцев назад +1

    A++++++ Tutorial. Keep up the great job. You are not a youtuber... you are a teacher. RESPECT!!!

  • @mick3yes
    @mick3yes Год назад

    Great video Kevin, you are such a good teacher! Thanks again!

  • @HusamJamal
    @HusamJamal Год назад

    One of the best videos that explain such topic. Thank you!

  • @ramachandranv1796
    @ramachandranv1796 2 года назад

    Many thanks. Awesome content and very well structured.

  • @lookingforwardto
    @lookingforwardto Год назад

    Very informative. Thank you GURU!

  • @arlenedahlcm7169
    @arlenedahlcm7169 2 года назад

    This is very informative and certainly well organized. It offers some excellent tips, too. Keep it up!

  • @sreerajpr4124
    @sreerajpr4124 Год назад

    Kevin, you r one of the best teachers❤.... Thanks for the superb video

  • @aveerajsharma
    @aveerajsharma 2 года назад +4

    Wow!!👌
    Great to hear this voice again
    By the way thanks for sending that post in which you informed us that you are currently spending some time with your family, else I was worried a bit

  • @bradhenrich3047
    @bradhenrich3047 2 месяца назад

    The length of the video gave me the Sunday scaries but I did watch it through and found it very useful. Overall great video. Thank you sir

  • @arphdsss9817
    @arphdsss9817 2 года назад

    This was helpful I learn something everyday from you Kevin thanks 😊

  • @ExcelTemplatesSolutions
    @ExcelTemplatesSolutions Месяц назад

    Learnt alot from you, thank you kevin

  • @nilamnighot8540
    @nilamnighot8540 7 месяцев назад

    Very Nice video that I have ever seen. I had so much confusion in the macro now it is cleared. I like the way you are explaining complex topics so easily. appreciate all your efforts.

  • @VaibhavSolution
    @VaibhavSolution Год назад

    Your level of expertise is impressive👍👍👍

  • @rotethongvanit
    @rotethongvanit 2 года назад

    Very clear explanation. Make it much easier, thanks.

  • @missn.a.ndlovu3322
    @missn.a.ndlovu3322 2 года назад

    Thanks this video helped me to understand the basics of VBA!

  • @javidparsa2199
    @javidparsa2199 2 года назад

    Hi Kevin, Thank you for your teaching method
    You speak very fluently and understandably, although I do not have a good level of English, but I easily understood you all the time teaching.
    I will definitely follow you and see more videos from you.
    Good Luck friend:)

  • @JK-jm6kd
    @JK-jm6kd Год назад +1

    I love your videos easy to follow

  • @olufemiomonikeolusegun8337
    @olufemiomonikeolusegun8337 2 года назад +1

    You're such a great teacher. I love your method of teaching. Please are you teaching us python again. Your first tutorial for beginners has been my best ever. Thanks

  • @robevarghese2973
    @robevarghese2973 10 месяцев назад

    I learned macros basic. I will now use this in daily work then move on to other topics. :)

  • @user-zp5vk2mp4c
    @user-zp5vk2mp4c Год назад

    I can't believe how interesting you've made this. You are a god.

  • @yolanizitumane4993
    @yolanizitumane4993 2 года назад

    Great tutorial, thanks Kevin. Would've loved to see how you code for "while fulfilled is No apply formatting" would look like.

  • @volodymyrpylypiv9684
    @volodymyrpylypiv9684 5 месяцев назад +1

    Extremely helpful. The teaching style is very accessible. My go-to channel when it comes to Excel problems/upskill

  • @hassanalianees5530
    @hassanalianees5530 5 месяцев назад

    Big fan of your videos. Thanks Kevin

  • @paladinhobbies5206
    @paladinhobbies5206 10 месяцев назад

    This is super amazing!!!! A million thanks to you ser!!!

  • @geo3000sa
    @geo3000sa 2 года назад

    Thanks Kevin, very informative and learned alot 👍

  • @lovethatbeach
    @lovethatbeach Год назад

    I feel smarter after trying my own macros with this tutorial! 😂 Thanks Kevin!!!

  • @diwakarmishra2241
    @diwakarmishra2241 3 месяца назад +1

    Thanks man. This is a good video to start with basics.

  • @yosef-yosef9414
    @yosef-yosef9414 2 года назад +2

    thank SO MUCH for this Tutorial Video in VBA

  • @user-rt2kp1uk1u
    @user-rt2kp1uk1u 9 месяцев назад

    Thank you, Kevin. Very helpful. I learned a lot from this video.

  • @jerrymartinez1048
    @jerrymartinez1048 3 месяца назад

    This was very helpful. Thank you!

  • @user-rc2ip1zb5d
    @user-rc2ip1zb5d 6 месяцев назад

    Thank you so much for this tutorial!

  • @oanphong61
    @oanphong61 2 года назад

    Thank you Kevin! Your video is amazing and well-explained. It helps me a lot

  • @zt2820
    @zt2820 2 месяца назад

    Great tutorial. Thank you!

  • @titomoura7014
    @titomoura7014 Год назад

    Congrats for the video you are a teaching wizard!

  • @rohitjain6379
    @rohitjain6379 Год назад

    Thank you dearest Kevin. This video was helpful and I absolutely loved it

  • @chrism9037
    @chrism9037 2 года назад +1

    Super helpful, thanks Kevin!

  • @fsaforosaforo6338
    @fsaforosaforo6338 8 месяцев назад

    Yet another great video on all things Excel. You are my go to guy for Excel thank you so much for producing these great videos. Flo

  • @erapandam2926
    @erapandam2926 Год назад +1

    Respect to you kevin, the way how you teach❤️. I understand you more easier than my teachers. If there something hard for me to understand. I always come here to look for your tutorial.
    And Thanks a lot.

  • @kannanmassey5783
    @kannanmassey5783 2 года назад +2

    Hi kevin. Thanks for valuable explanation. Pls explain how can we highlight only pending orders if they appear at any row. We have to consider only those rows with "No" in the last column

  • @vuyanimyekiso3868
    @vuyanimyekiso3868 Год назад

    Thank you Kevin great lesson in macros!

  • @christianjohngaspar8446
    @christianjohngaspar8446 Год назад

    The Best Tutor for Excel.

  • @hc8714
    @hc8714 7 месяцев назад

    this is the only tutorial you need.