Learn VBA & Excel Macros in 20 minutes - with code samples 👨‍💻

Ғылым және технология

VBA is a great entry-level programming language. If you have been looking for a solid, no-frills and practical guide to learn VBA, here it is.
In this detailed video,
* Learn what VBA is and how to find it in Excel?
* How to use recorder to record and replay Macros (steps or actions)
* How to write your own code using Visual Basic Editor (VBE)
* Making a simple to-do list app in Excel
* Creating a data extractor app in Excel
* How to self-learn VBA with recorder & help
Watch PART 2 here 2️⃣👉
====================
I just released a part of this video. Watch it here - • Take your Excel VBA sk...
SAMPLE FILE 👉
==============
files.chandoo.org/vba/getting...
Companion article + resources - chandoo.org/wp/excel-vba/
Online VBA Class for more - chandoo.org/wp/vba-classes/
Timestamps ⏱
=============
0:00 Introduction
1:20 VBA in Excel - where to find it?
2:40 A simple macro - coloring cells
4:55 Recalling the macro (adding a button)
6:30 Modifying recorded macro code (VBE)
10:26 To-do list application with VBA
18:37 Data extractor app with VBA
22:39 How to learn more VBA
Resources to learn VBA 📗💻💡
==========================
Companion article + resources - chandoo.org/wp/excel-vba/
My recommended Excel + VBA books - www.amazon.com/shop/chandoo?l...
Online VBA Class for more - chandoo.org/wp/vba-classes/
Playlists & Videos 📃🎥
====================
My VBA examples playlist - • Excel VBA Examples & P...
Introduction to conditional formatting video - • Introduction to Condit...
Got Questions 🤷‍♂️❓
=================
Post a comment so I can guide you.
* The amazon shop link uses my affiliate code.

Пікірлер: 192

  • @chandoo_
    @chandoo_2 жыл бұрын

    Hi folks.. I just released PART 2 of this video. Check it out here kzread.info/dash/bejne/oJmmq8WFhprHYtY.html and take your VBA skills to next level. 😃

  • @ananyarajashekar5771

    @ananyarajashekar5771

    Жыл бұрын

    u r the best

  • @kranthinagella7773

    @kranthinagella7773

    Жыл бұрын

    in the VBA marking as complete, Had doubt that if task completed you marked as green and if by mistake you click on a task which was not completed as completed if you press the macro assigned button once again it will turn to cross mark, now what if later i completed the task how i can mark to completed with the code written it is not possible it seems. Can you please explain how to do that?

  • @kranthinagella7773

    @kranthinagella7773

    Жыл бұрын

    Use the below code to turn the red mark again to green Sub Task_Marking() Range("b1:b25").Value = "Task is completed" If ActiveCell " " Then If ActiveCell.Offset(0, -1).Value = " " Then ActiveCell.Offset(0, -1).Value = 1 ElseIf ActiveCell.Offset(0, -1).Value = -1 Then ActiveCell.Offset(0, -1).Value = 1 Else ActiveCell.Offset(0, -1).Value = -1 End If End If End Sub

  • @sallyho146

    @sallyho146

    Жыл бұрын

    Thanks Chandon. Basically VBA replaces macro?

  • @kavitasalvi1132

    @kavitasalvi1132

    Жыл бұрын

    Thanks for this vedio🎉

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

    I’ve watched sssoooo many videos trying to understand VBA. This has been the best because you actually explain what the coding verbiage means and represents.

  • @davidevans3199

    @davidevans3199

    Жыл бұрын

    Do you have any additional videos on specific Data Extraction, such as Data Entry forms. I am attempting to build a project calendar.

  • @SanjayGore
    @SanjayGore2 жыл бұрын

    You are a very good teacher. You actually give some confidence to novices. You are doing a novel and selfless job. Keep it up. God bless you. Be happy always.

  • @ariannayoutube
    @ariannayoutube2 жыл бұрын

    You are amazing, I loved how you explained each step so clearly, I was able to learn VBA without previous experience! Thank you!

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

    This is why VBA is very powerful in business process desktop spreadsheets automation. You just shown the BASIC of MACRO and the rest is WONDER. Great video tutorial. Awesome!

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

    Big ups chandoo! I watched this video out of curiosity and I must say not only do you know your stuff, you are a great teacher as well. I wish I got clearer explanations like you're giving here during my programming lessons back in my university days. Keep up the good work.

  • @surajdarokar1541
    @surajdarokar15412 жыл бұрын

    Wonderful video Sir. VBA is a lot easier than SQL. You're awesome. Thank You so much. It's been a great day for me. Finally learned some cool stuff in Excel. 🙏

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

    Super presentation. Unlike other EXCEL presentation, this will open up a new world for those who want to crack their head.

  • @tonyheron8265
    @tonyheron82653 жыл бұрын

    Brilliant Chandoo . Best tuition ive came across to date

  • @shaikusman536
    @shaikusman5362 жыл бұрын

    Awesome Purna Chandra ! INDIA needs Teachers LIke you......

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

    He is so calm /subtle man ..

  • @wildtraveler7399
    @wildtraveler73992 жыл бұрын

    Hello Chandoo. Just discovered your video. Great and easy to follow explanation. Thank you very much for covering all these topics in this tutorial. Great video

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

    I mean wow, I never thought we can do something like this in Excel. Thank u so much for this video.

  • @apwnew
    @apwnew2 жыл бұрын

    Chandoo! As always you presented a perfect bundle of information! 😎👍

  • @GhazaliConsulting
    @GhazaliConsulting9 ай бұрын

    thanks chandoo i just viewed this video this is the simplest way to learn VBA

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

    Chandoo. Excellent, your coaching is as good as an adult teaching a child how to ride a bicycle. Gudos.

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

    just because of you i wrote my first code, thank you chandoo

  • @chandoo_

    @chandoo_

    Жыл бұрын

    Woohoo!!! More Power to you ⚡

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

    Actually I m speechless now Sir....🙏 but U have a very beautiful voice and ur intelligence is another level

  • @rambofriends
    @rambofriends11 ай бұрын

    Explanation and Editing are another level, felt found good tutor

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

    This is very good tutorial. Delivered with simplicity. Keep it up, Chandoo!

  • @FreeSpeech1959
    @FreeSpeech19592 жыл бұрын

    Very clearly explained. Thanks.

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

    Wow and amazing knowledge Chandoo. Hats off

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

    Thanks for the good work you are doing, Please i would be very glad if you can do 2 hours full tutorials video on excel VBA program. Your teaching make me developed interest in excel VBA

  • @santhakumarnatarajan
    @santhakumarnatarajan20 күн бұрын

    Amazing sir. Did a great job!

  • @Sebastien_Frederic
    @Sebastien_Frederic2 жыл бұрын

    You're really amazing Sir. Great explanations From Haïti

  • @jinkasreenath8652
    @jinkasreenath86522 жыл бұрын

    your explination is so intresteing and simple chandoo

  • @p.arogyaraju5838
    @p.arogyaraju5838 Жыл бұрын

    Chandoo garu Thank You Sir 🙏 ధన్యవాదాలు💐

  • @hemanttrivedi898
    @hemanttrivedi8982 жыл бұрын

    Good Demonstration of VBA. Quite useful

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

    Many thanks Chandoo!! ❤️❤️

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

    😘😘😘🙏what could be better than lerning from a successful, inteligent and professional MAN...

  • @chanceyknows4445
    @chanceyknows44458 ай бұрын

    Great tutorial! Question though...I noticed when recording my macro when I selected a cell that had content inside, and then assigned the macro to a button and executed the button, it would jump to that cell. Some reason I had to start in a blank cell and then record the macro, then stop the recording and it worked like a charm! Thanks again! (3:46 is where I'm talking about). Cheers!

  • @technicaldata3227
    @technicaldata32273 жыл бұрын

    Extremely Helpful

  • @dhanushm3690
    @dhanushm36902 жыл бұрын

    Awesome video, thankful to land on your video.

  • @JavedAnsari-vba
    @JavedAnsari-vba7 күн бұрын

    Thanks for sharing very helpful video and tips❤❤

  • @naveenvp7390
    @naveenvp73903 жыл бұрын

    Thank you sir... eagerly waiting for the second part of this video 😀😀👍

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Naveen... Won't be long.

  • @ctnrandhawa7019
    @ctnrandhawa70192 жыл бұрын

    Hay Chandoo . doing very good job i learn aloooooot from your videos your way of teaching is clicked every mind , Your English is totally understandable as you speaks not in flout and even video editing is too cool none can lose interest . please keep it up and waiting for full VBA , Python course on youtube. Thanks buddy.

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    Thanks Randhwa... Here is my VBA playlist - kzread.info/dash/bejne/oJmmq8WFhprHYtY.html I plan to add more VBA and programming videos in the coming months.

  • @hussainakhtar1094
    @hussainakhtar10943 жыл бұрын

    Thank you Chandoo, This is so easy, I learned excel macros and VBA many years back but, then never applied. I now try and test each of your lessons with my data. Excel is fun and Excel with VBA is a great fun to work with... :)

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Hussain... VBA certainly makes Excel more fun...

  • @ammadkangatabdulla8775

    @ammadkangatabdulla8775

    2 жыл бұрын

    Great

  • @MdAsif-km9sx
    @MdAsif-km9sx2 жыл бұрын

    Brilliant. In my case, I have to tick off not just a cell but a range of cells. Could anybody suggest what changes should I make?

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

    Hi Chandoo. Nice getting started video for VBA. Thanks for sharing :)) Thumbs up!!

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    You are welcome Wayne. :)

  • @aegeanorganicslemnos8311
    @aegeanorganicslemnos83112 жыл бұрын

    Very usefull information . Thank you.

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

    u r superb, u r self less and super helpfull

  • @mohammedmukarram6689
    @mohammedmukarram66893 жыл бұрын

    Thanks. Explained in a simple way.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    You're welcome!

  • @SRCOMPUTEREDUCATION
    @SRCOMPUTEREDUCATION3 жыл бұрын

    Awesome as always

  • @frenan82
    @frenan823 жыл бұрын

    Great as usual! I know VBA buy is great to see how an MVP Excel like you do it. I Always learn something new or improve my skills with you.

  • @anupammishra1013
    @anupammishra10132 жыл бұрын

    You should have more than 1crore subscribers considering your valuable content..you are amazing

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    Thanks for the love and blessings Anupam :)

  • @elfridhasman4181
    @elfridhasman41813 жыл бұрын

    Thank You Sir, Awesome

  • @BikashKumar-pz8hc
    @BikashKumar-pz8hc2 жыл бұрын

    Loved the video. Thank you!

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    You are welcome Bikash.

  • @anthonyrozario2757
    @anthonyrozario27573 жыл бұрын

    Excellent explanation, you are really awesome. I missed your live on 25th June but later I have watched which is also awesome and very helpful for learning. Keep going for us Chandoo. To be honest it is really helpful for me as a HR Professional for last twenty five years.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Anthony... I am glad you enjoyed this.

  • @khurshidanwarnafees
    @khurshidanwarnafees2 жыл бұрын

    Great explanation Thumbs Up.

  • @ashfaqahmed130
    @ashfaqahmed1303 жыл бұрын

    Thanks chandoo… waiting for part 2 eagerly…

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    You are welcome Ashfaq... won't be long.

  • @nirmalabolar1382
    @nirmalabolar13822 жыл бұрын

    Thank you, very useful video.

  • @MartinezRBA
    @MartinezRBA11 ай бұрын

    Awesome content!!!!

  • @Mamtha7272
    @Mamtha72723 жыл бұрын

    Chandoo Anna, I always like your video and learning.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Bhavani... :)

  • @abdulazizthaim8517
    @abdulazizthaim85172 жыл бұрын

    Wonderful! it is educative

  • @shrirana1904
    @shrirana19042 жыл бұрын

    Could you please create VBA full course (single course) / series of it, so to excel in it. Your videos are very helpful and teaching style is amazing. it's simple to understand. Thanx keep it up....

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    I run an online course for this Shri. Check out chandoo.org/wp/vba-classes/ and sign up

  • @imranurrahman8538
    @imranurrahman85383 жыл бұрын

    Just loved it, sir. Thank you so much.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Most welcome!

  • @tradingforliving6556

    @tradingforliving6556

    2 жыл бұрын

    @@chandoo_ Hi sir.. Can we create a file as per customised data based on inputs and save in pdf format using Excel VBA by one click?

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

    You simply awesome!

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

    Great job!

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

    Hi Chandoo. I really liked your tutorials but I have a question about the data extractor. What if we want multiple sets of data to be extracted? I believe the header will get copied each time we hit on the button. What would be the code setup if multiple selections have to be made without copying the header after the 1st selection. I am new to the VBA world and would appreciate more clarity on this!!

  • @ubaid25
    @ubaid252 жыл бұрын

    Thank you so much

  • @sagarmathur3535
    @sagarmathur35352 жыл бұрын

    Please explain deeply about compilers and interpreters...

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

    Hi Chandoo Just saw your video where you created Data Extractor with VBA I found it very interesting However I do have one question about copying the headers. How can we make column range more dynamic Kind regards Eric Van Reck

  • @Vikas.Verma06
    @Vikas.Verma0611 ай бұрын

    Was it much easy 🤩

  • @jerrymiles7804
    @jerrymiles78043 жыл бұрын

    Outstanding!

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Jerry...

  • @arupmca
    @arupmca3 жыл бұрын

    Sir, You are truly a great teacher. The way you introduced the macro and dive into VBA is so easy this helps viewer to learn more on any topic and your video editing was also excellent. May I know which software you use to edit your videos? Thanks for this video ..

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks Arup.. I am using Camtasia for creating and editing my videos. You can check out my other video gear here - www.amazon.com/shop/chandoo

  • @arupmca

    @arupmca

    3 жыл бұрын

    @@chandoo_ Thank you Sir..

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

    finished practicing

  • @binoythomas2974
    @binoythomas29743 жыл бұрын

    How amazing. Thank you

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    You are so welcome!

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

    Love watching your videos. I am building NASCAR pool sheet which has hidden columns. I don't know how to use a macro to reset (clear) the date for the next year to start with a clean sheet and leave all formulas intact. Can you help

  • @jas_a98
    @jas_a982 жыл бұрын

    You are amazing!

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    Wow, thank you! You are awesome too :)

  • @VinodKumar-ec5hu
    @VinodKumar-ec5hu2 жыл бұрын

    Finally sir u r on KZread.

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    Thanks Vinod. I am here for over 11 years now. :)

  • @sarwarayaanali272
    @sarwarayaanali2729 ай бұрын

    Thnx Aparichit Sir

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

    Guys he is not human. He is lying. He knows everything which feels sceptical. Please come from real id

  • @singhalmonica
    @singhalmonica3 жыл бұрын

    Pls tell which one more imp. VBA or Google App Script. Pls make video on it too....

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

    10:01 I am not getting to change the colour can someone help me out with this? please ? Great tutorial. Thank you

  • @kishorpanara4191
    @kishorpanara41913 жыл бұрын

    Awesome dear

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

    finished watching

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

    Hi Chandoo, really like your videos about VBA. Excessing your videos from Papua New Guinea. My Question. I am trying to load tags to PI Process Book (PI SMT) but couldn't. Could you please show some light on this? Would really appreciate that.

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

    Do you have a tutorial wich shows how to extract data to another workbook on the computer that is not open?

  • @sulemanali4006
    @sulemanali40062 жыл бұрын

    What would be the code for extracting Duplicate Highlighted Data into a new workbook sheet if you can do a video on that sir please.

  • @neerajjainification
    @neerajjainification2 жыл бұрын

    Sir Thanks a lot

  • @bskrmusic3932
    @bskrmusic39323 жыл бұрын

    Thanks a lot Anna !

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    You are welcome 😊

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

    thanks for the video but i have one more question based on excel sum value if grater than budget should show in head line approved if less than budget should show rejected. how we can?

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

    How to filter out with multiple criteria for a column, could you please explain me

  • @nikunjparasrampuria6901
    @nikunjparasrampuria69013 жыл бұрын

    Hi Sir, I have recently become a subscriber to the channel since your videos are always so educational and helpful. I do have a question - In an Excel sheet, I have 12 months in C1:M1 and monthly unit sold data for 5 customers from C2:M6. Is there a way to determine which customer starts selling in which month out of the 12 months? I do not want the results to spill as in FILTER function.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Thanks for the sub. Interesting question. You can try INDEX(FILTER(), 1) to get first month when the unit sold is not blank. For example, this formula works. =INDEX(FILTER($C$1:$N$1,C2:N2""),1)

  • @nikunjparasrampuria6901

    @nikunjparasrampuria6901

    3 жыл бұрын

    @@chandoo_ Thank You Sir. I shall try the same and get back to you. I am an aspiring business modeler and wish to ask you if you can create a series for business modelling? That would be really helpful Sir. Much love and support from India.

  • @kevingreenhill9166
    @kevingreenhill91663 жыл бұрын

    Does anyone know how to read the table of contents on a CD using VBA?

  • @Gunkadunce
    @Gunkadunce3 жыл бұрын

    Chandoo your content is great. I have a very specific question about a xl spreadsheet ive made. Is there a way I can show it to you and ask you my question.

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Hi Joe.. thanks for that appreciation. You can email me your files, but unfortunately, I have a rather full plate of work and my turn-around time is 3-4 weeks. If you have specific Excel / VBA questions, you should post them in a forum or Stack Overflow for better results. My email is here - chandoo.org/wp/contact/

  • @vinayachandranr7233
    @vinayachandranr72333 жыл бұрын

    Excellent. But one query? The new sheet gets added before the active sheet. Is there any way to add the same after the active sheet. I have tried - "Set newWorksheet = Sheets.Add After:=currentSheet". But not working. Any work around? Thanks in advance

  • @wnenu114
    @wnenu1143 жыл бұрын

    Sir, how this help out an accountant in his career growth

  • @sagarmathur3535
    @sagarmathur35352 жыл бұрын

    Also explain VBA library?

  • @keeskkool
    @keeskkool2 жыл бұрын

    Hi Chandoo, regarding the "To Do List" code, I would like to assign a macro which will alternate / switch between the values -1/0/1/-1/0/1 as the buttton is pushed. How could such a code be written? Thanks / good videos!!

  • @BryanLeandry

    @BryanLeandry

    Жыл бұрын

    If you want to cycle it, add another if then line. The first one should check if it's blank, if it's blank the value returned would be 1, the next line checks if it's a 1, and if it is a one then return the value 0, finally check if the value is 0, and return a value -1, but now to go back to the value of 1, you'd have to check if the value is -1, then return 1. This is how I would write it but I'm learning as well so there would probably be a shorter way which he mentioned as "homework"

  • @platformengineering..671
    @platformengineering..6713 жыл бұрын

    Hi sir please create vba vedio from basic to advanced vedio please sir it's my humble request to you

  • @chandoo_

    @chandoo_

    3 жыл бұрын

    Hi Deepak.. this is that video. Not sure what you are asking for? I have part2 of this series coming up in a few days and there is a VBA playlist too. For something more intense, go for my online class - chandoo.org/wp/vba-classes/

  • @yashsomaiya8141

    @yashsomaiya8141

    2 жыл бұрын

    Hi. Visit Wise Owl Tutorials channel. It will cover everything from basic to advance. Trust me it is one the best channel you might have ever come across.

  • @mdmoniruzzaman4431
    @mdmoniruzzaman44312 жыл бұрын

    Please show how to quickly track data entry skip

  • @excellnewbie4988
    @excellnewbie49882 жыл бұрын

    On, BVA code , how to enable the guide on color when I put my mouse, the color code guide is not displaying on the screen.. I don't know how to see the guides..

  • @Antonio-nk5mx
    @Antonio-nk5mx Жыл бұрын

    I need help! I need to extract data but attach it to the same file every time, without losing the data I had previously extracted. How do I do it? Thank you!!!

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

    Nice

  • @mikewashington4188
    @mikewashington41882 жыл бұрын

    Great video! Thanks a bunch!!!!

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    You are so welcome!

  • @SRIDHARGsridharganja
    @SRIDHARGsridharganja2 жыл бұрын

    Nice Learning Sir I have small doubt can you tell me how to copy data from sheet1 and paste special in sheet2 last row when i play the command it has to paste in last row of sheet 2

  • @chandoo_

    @chandoo_

    2 жыл бұрын

    Thanks Sridhar. Record a macro with the steps you need. See the recorded code and customize it based on the concepts covered in this video. All the best.

  • @JinaneKarhaniRawda
    @JinaneKarhaniRawda2 жыл бұрын

    Hello sir, very simple video, yet -for the 1st macro- when i click on the button it just format the same cells we choose while recording the mac. Can you correct me ,what did I mess up, though i follow the same rules & tried a few times. HELP pls??

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

    17:36 chandoo from future 😜👍

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

    Excelente 5 ⭐️ ⭐️ ⭐️ ⭐️ ⭐️()

Келесі