Excel Macros & VBA - Tutorial for Beginners

  Рет қаралды 1,101,017

Kevin Stratvert

Kevin Stratvert

Күн бұрын

🔥 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 KZbin channel
kzbin.info?...
🎬 Want to watch again? Navigate back to my KZbin 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

Пікірлер: 410
@KevinStratvert
@KevinStratvert 2 жыл бұрын
🏫 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: kzbin.info/aero/PLlKpQrBME6xLYoubjOqowzcCCd0ivQVLY
@thegossiploverz
@thegossiploverz 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 23 күн бұрын
##
@zacharykrawczyk1218
@zacharykrawczyk1218 2 жыл бұрын
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 жыл бұрын
Yes! This is the "secret sauce" to this video - sets it above the rest for that reason alone.
@qrsimon
@qrsimon Жыл бұрын
Coowl
@nguyen3276
@nguyen3276 Жыл бұрын
Him: *pauses* My brain: we can totally apply this to….. oh wait there’s more, write that down!!!
@mala3167
@mala3167 Жыл бұрын
Everybody be diagnosing themselves with ADHD these days :(
@_DinoHat_
@_DinoHat_ Жыл бұрын
Omg is that a thing?, is that why when someone says three sentences without a break i cant keep track?
@saumitrad
@saumitrad 2 жыл бұрын
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.
@enerialufan
@enerialufan 2 жыл бұрын
I recently started my data analysis journey and I have been waiting for this video for forever. Thanks Kevin!
@omarad
@omarad Жыл бұрын
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 7 ай бұрын
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.
@chiomakamalu2890
@chiomakamalu2890 9 ай бұрын
I'm glad I found this KZbin channel. Kevin does not miss anything and keeps it on point with relevant information.
@mvc9871
@mvc9871 2 жыл бұрын
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!
@hollyrace3998
@hollyrace3998 11 ай бұрын
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.
@alvixtan1617
@alvixtan1617 2 жыл бұрын
It's difficult to have one video in KZbin with no dislikes. You deserve this.
@ricardoluizmarcello
@ricardoluizmarcello Жыл бұрын
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
@Gaboch8719
@Gaboch8719 2 жыл бұрын
What a professional video made by a genuine professional! Congratulations and thanks a lot Kevin!
@ChillPillWilly
@ChillPillWilly 7 күн бұрын
Never would I have thought that Stifler would teach me Excel VBA, great video
@NZDLo
@NZDLo 9 ай бұрын
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!
@TruthofDilly
@TruthofDilly 2 жыл бұрын
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.
@morgannweke7771
@morgannweke7771 2 жыл бұрын
This was super helpful, Kevin! Thank you for taking the time to share quality content.
@cpt.benfox
@cpt.benfox 2 жыл бұрын
Great job Kevin! As always each video is informative and extensively educational.
@makarand1985
@makarand1985 Жыл бұрын
Kevin you are the BEST teacher I come across till date GOD BLESS YOU !!!
@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!
@alihameed5389
@alihameed5389 2 жыл бұрын
An excellent educator, thanks for all the work you are doing man!
@TylerStanczak
@TylerStanczak 2 жыл бұрын
Such a helpful tutorial. None of us enjoy doing those repetitive tasks. Thanks Kevin :)
@jamesarchieodena4107
@jamesarchieodena4107 10 ай бұрын
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. ❤❤❤
@hanzelpalacio3756
@hanzelpalacio3756 Жыл бұрын
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.
@SavageGothamChess
@SavageGothamChess 2 жыл бұрын
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!!!
@KevinStratvert
@KevinStratvert 2 жыл бұрын
😁
@FTSociety
@FTSociety 11 ай бұрын
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!
@rotethongvanit
@rotethongvanit Жыл бұрын
Thanks Kevin for the step by step tutorial.
@SheikhMuhammadNawaz
@SheikhMuhammadNawaz 2 жыл бұрын
The way you explain is awesome..... I really like your way of teaching and making us understand.... Thank you!
@HarjeevanSingh-Tech
@HarjeevanSingh-Tech 2 жыл бұрын
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 😎
@579maheshreddy4
@579maheshreddy4 Жыл бұрын
This is the best course that I have ever seen on KZbin for excel vba, Thank you so much my man for helping me to understand the macros 😊😊
@jamesstreeter43
@jamesstreeter43 Жыл бұрын
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.
@TheSuperEmpoleon
@TheSuperEmpoleon Жыл бұрын
This is probably the best tutorial video I’ve ever watched. Thanks!
@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. 👍
@johndn9238
@johndn9238 2 жыл бұрын
This is really brilliant for macro novice like me and going to save me tons of time! Thank you very much indeed.
@user-qv6eu1qi7w
@user-qv6eu1qi7w 8 ай бұрын
Thank you Kevin thank you very much
@glengreen8
@glengreen8 Жыл бұрын
❤ really valuable lesson. Macros are awesome and you are great teacher. Much respect.
@mariamarrero6611
@mariamarrero6611 6 ай бұрын
One of the best and well explained videos teaching VBA! thumbs up!
@lawmontgreen8860
@lawmontgreen8860 2 жыл бұрын
What an amazing tutorial. I’m learning so much. Thank you.
@sameertawfiq3420
@sameertawfiq3420 2 жыл бұрын
Thank you so much!! I learn a lot through your videos even things I thought I already know.
@OrientalMelodies2010
@OrientalMelodies2010 Жыл бұрын
Your way of explaining the subject is outstanding, many thanks for the awesome tutorial :)
@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
@adelle1441
@adelle1441 2 жыл бұрын
So far one of the BEST tutorial video and Trainer in KZbin. Very informative and well explained with the right pace and level of enthusiasm.
@hankgrimes1806
@hankgrimes1806 2 жыл бұрын
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
@HusamJamal
@HusamJamal Жыл бұрын
One of the best videos that explain such topic. Thank you!
@maximilianosalibe1710
@maximilianosalibe1710 2 жыл бұрын
I really loved this video, Kevin! It's specially helpful to understand and take profit of the advantages of using Excel!
@bencecserkuti7110
@bencecserkuti7110 Жыл бұрын
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.
@tahamadani2462
@tahamadani2462 Ай бұрын
You are a great teacher. Thank you for the video
@sairaj6875
@sairaj6875 Ай бұрын
Thank you so much, Kevin. This is so helpful.
@akashsharma4746
@akashsharma4746 2 жыл бұрын
Time well spent 🔥, learned a lot about Marcos !
@colinracheljustpootling7468
@colinracheljustpootling7468 2 жыл бұрын
Wow! Just brilliant and so well explained. Thank you
@mick3yes
@mick3yes Жыл бұрын
Great video Kevin, you are such a good teacher! Thanks again!
@alexanderpechacek871
@alexanderpechacek871 2 күн бұрын
You are the GOAT kev
@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!
@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.
@YeungKaHung
@YeungKaHung 2 жыл бұрын
Extremely useful Excel tutorial. Great thanks!
@mdimran1a
@mdimran1a 2 сағат бұрын
great intro to beginners coding
@arlenedahlcm7169
@arlenedahlcm7169 2 жыл бұрын
This is very informative and certainly well organized. It offers some excellent tips, too. Keep it up!
@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.
@arphdsss9817
@arphdsss9817 2 жыл бұрын
This was helpful I learn something everyday from you Kevin thanks 😊
@rotethongvanit
@rotethongvanit 2 жыл бұрын
Very clear explanation. Make it much easier, thanks.
@diwakarmishra2241
@diwakarmishra2241 3 ай бұрын
Thanks man. This is a good video to start with basics.
@ramachandranv1796
@ramachandranv1796 2 жыл бұрын
Many thanks. Awesome content and very well structured.
@ExcelTemplatesSolutions
@ExcelTemplatesSolutions 2 ай бұрын
Learnt alot from you, thank you kevin
@Missyvjd
@Missyvjd 2 ай бұрын
Thanks so much for this....I needed help to understand relative references
@fsaforosaforo6338
@fsaforosaforo6338 9 ай бұрын
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
@user-rt2kp1uk1u
@user-rt2kp1uk1u 9 ай бұрын
Thank you, Kevin. Very helpful. I learned a lot from this video.
@rohitjain6379
@rohitjain6379 Жыл бұрын
Thank you dearest Kevin. This video was helpful and I absolutely loved it
@aveerajsharma
@aveerajsharma 2 жыл бұрын
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
@user-zp5vk2mp4c
@user-zp5vk2mp4c Жыл бұрын
I can't believe how interesting you've made this. You are a god.
@yosef-yosef9414
@yosef-yosef9414 2 жыл бұрын
thank SO MUCH for this Tutorial Video in VBA
@johnsamte830
@johnsamte830 Ай бұрын
Great video Kevin. Thank you!
@sreerajpr4124
@sreerajpr4124 Жыл бұрын
Kevin, you r one of the best teachers❤.... Thanks for the superb video
@lookingforwardto
@lookingforwardto Жыл бұрын
Very informative. Thank you GURU!
@paladinhobbies5206
@paladinhobbies5206 10 ай бұрын
This is super amazing!!!! A million thanks to you ser!!!
@missn.a.ndlovu3322
@missn.a.ndlovu3322 2 жыл бұрын
Thanks this video helped me to understand the basics of VBA!
@hassanalianees5530
@hassanalianees5530 5 ай бұрын
Big fan of your videos. Thanks Kevin
@christianjohngaspar8446
@christianjohngaspar8446 Жыл бұрын
The Best Tutor for Excel.
@nilamnighot8540
@nilamnighot8540 8 ай бұрын
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.
@JK-jm6kd
@JK-jm6kd Жыл бұрын
I love your videos easy to follow
@VaibhavSolution
@VaibhavSolution Жыл бұрын
Your level of expertise is impressive👍👍👍
@lovethatbeach
@lovethatbeach Жыл бұрын
I feel smarter after trying my own macros with this tutorial! 😂 Thanks Kevin!!!
@wilkinsbrito5168
@wilkinsbrito5168 2 жыл бұрын
Thank you for this video! I just started to properly utilize PC Apps/Software.
@jerrymartinez1048
@jerrymartinez1048 3 ай бұрын
This was very helpful. Thank you!
@geo3000sa
@geo3000sa 2 жыл бұрын
Thanks Kevin, very informative and learned alot 👍
@titomoura7014
@titomoura7014 Жыл бұрын
Congrats for the video you are a teaching wizard!
@user-rc2ip1zb5d
@user-rc2ip1zb5d 6 ай бұрын
Thank you so much for this tutorial!
@SayedSquadOfficial
@SayedSquadOfficial 11 ай бұрын
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...
@chrism9037
@chrism9037 2 жыл бұрын
Super helpful, thanks Kevin!
@lovelifebrown
@lovelifebrown 2 жыл бұрын
Thank you so much!!!! I have subscribed and am excited about following you!@!
@marianethsanchez2621
@marianethsanchez2621 5 ай бұрын
really helpful and simple, thank you!
@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:)
@vuyanimyekiso3868
@vuyanimyekiso3868 Жыл бұрын
Thank you Kevin great lesson in macros!
@oanphong61
@oanphong61 2 жыл бұрын
Thank you Kevin! Your video is amazing and well-explained. It helps me a lot
@KevinStratvert
@KevinStratvert 2 жыл бұрын
Glad it was helpful!
@agptadmin9886
@agptadmin9886 Жыл бұрын
Great video Kevin! I learned a lot. Thanks!
@zt2820
@zt2820 2 ай бұрын
Great tutorial. Thank you!
@cenevspeed
@cenevspeed 2 жыл бұрын
Microsoft provides so many new features in their products and thankfully we have such a wonderful teacher to explain them 😎 Thank You Kevin 🔥
@ChristopherNealBUSHIDO49ERS
@ChristopherNealBUSHIDO49ERS Жыл бұрын
This was super-helpful! THANK YOU!!!
@kawtarelkasdir4069
@kawtarelkasdir4069 Жыл бұрын
thank u so much for this amazing explanation I've learned a lot from it 🥰
@georgem.6076
@georgem.6076 2 жыл бұрын
Thank you, Kevin. I feel a little less worried about starting my new job next week.
@devarshnayyar3910
@devarshnayyar3910 2 жыл бұрын
A great video . I was Thinking of this and what a coincidence.
@Juan-Hdez
@Juan-Hdez 5 ай бұрын
Very useful. Thank you!
Excel Formulas and Functions | Full Course
52:40
Kevin Stratvert
Рет қаралды 1,2 МЛН
Excel 2021 VBA Intermediate Tutorial
2:21:03
Learnit Training
Рет қаралды 39 М.
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 2 МЛН
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 24 МЛН
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 58 МЛН
👩‍💻 Python for Beginners Tutorial
1:03:21
Kevin Stratvert
Рет қаралды 3 МЛН
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 269 М.
Excel VBA Beginner Tutorial
2:10:31
Learnit Training
Рет қаралды 5 МЛН
How to Create & Use Excel Macros (Real world example)
10:09
Leila Gharani
Рет қаралды 1,6 МЛН
Visual Basic (VB.NET) - Full Course for Beginners
3:17:20
freeCodeCamp.org
Рет қаралды 886 М.
Learn Excel VBA to Automate Anything
14:02
Kenji Explains
Рет қаралды 348 М.
Excel 2021 Full Course Tutorial (3+ Hours)
3:48:53
Learnit Training
Рет қаралды 749 М.
How to Master VBA loops FAST (with real coding examples)
8:37
Excel Macro Mastery
Рет қаралды 19 М.
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 10 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 12 МЛН
China 🇨🇳 Phone 📱 Charger
0:42
Edit Zone 1.8M views
Рет қаралды 381 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,5 МЛН