Excel VBA tutorial for beginners: The Visual Basic Editor (VBE)

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 4. 07. 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    Unlock the secrets of Excel VBA with our comprehensive guide on using the Visual Basic Editor (VBE)! This is the place macros from the macro recorder are recorded as well as the place you'll be writing any VBA code.
    This video is your first step towards mastering Excel VBA, making it a must-watch for both beginners and seasoned Excel users looking to enhance their productivity and workflow efficiency.
    Get access to the full Excel VBA Course here 👉 www.xelplus.com/course/excel-...
    Learn how to navigate and utilize the VBE, from creating auto-updating charts with Excel macros to customizing your workbook with advanced VBA code. Discover the favorite methods to access the VBE, essential components like the Project View, and tips on activating useful tools like the Properties and Immediate Windows.
    00:00 How to Use the Visual Basic Editor in Excel
    00:26 Introduction to the Visual Basic Editor
    09:36 Visual Basics and Color Guidelines
    19:32 Unlock Excel VBA and Macros Course - From Beginners to Advanced
    đŸĄ» Sample Workbook used in Last LectuređŸĄ»
    www.xelplus.com/excel-vba-to-c...
    The Article : www.xelplus.com/the-visual-ba...
    ★★ Links to related videos: ★★
    Excel dynamic macro to copy data from one sheet to another: ‱ Excel VBA: Copy Data f...
    âžĄïž Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    đŸŽ„ RESOURCES I recommend: www.xelplus.com/resources/
    đŸš©Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #ExcelVBA

Komentáƙe • 343

  • @LeilaGharani
    @LeilaGharani  Pƙed 6 lety +76

    Get access to the full Excel VBA Course here 👉 www.xelplus.com/course/excel-vba-excel-macros/

    • @antrikshsharma6990
      @antrikshsharma6990 Pƙed 6 lety +3

      Leila Gharani if you can make videos on the following topics that would be great -
      1. Arrays
      2. Class Modules
      3. Complex UDFs

    • @abdallah.kandiel
      @abdallah.kandiel Pƙed 6 lety +3

      Leila Gharani welcome back ur hience

    • @sridharlagishetty2078
      @sridharlagishetty2078 Pƙed 6 lety

      Oh k sure

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety +3

      Nice list - ok arrays and custom functions are in the course - I'll pick one or two lectures and post them here once we cover the basics a bit....Class modules is something I'm planning to add in later and I'll make a note to make a video for CZcams as well.

    • @ashishmohan4707
      @ashishmohan4707 Pƙed 6 lety +1

      Leila Gharani how can i. connect with u

  • @excelisfun
    @excelisfun Pƙed 6 lety +4

    Great work on VBA Editor!

  • @pramodkamathable
    @pramodkamathable Pƙed 5 lety +6

    This is awesome. I am already loving the way it is explained. Thanks a lot Leila!!

  • @anthonycervantes719
    @anthonycervantes719 Pƙed 5 lety +8

    You're a talented teacher. Thank you for making this video.

  • @vanessachen2330
    @vanessachen2330 Pƙed rokem +1

    I watched several of the videos about this topic. yours are the most precis and easier to understand. I appreciate you awesome work, and I will definitely recomment your videos to my class.

  • @JeffreyBaconBacon
    @JeffreyBaconBacon Pƙed rokem

    Thank you for sharing this video. I had some basic tasks to do, without any VBE experience, and your setup instructions got me going the same day.

  • @johnborg6005
    @johnborg6005 Pƙed 6 lety +15

    Thanks Leila. I think that the following videos will be very interesting for me. I love this already :)

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Great! I'm glad to hear to hear that John :)

  • @MrNuranga
    @MrNuranga Pƙed 3 lety +1

    Just enrolled for the VBA course and already loving it. Thanks! 🙂

  • @vijaygusain119
    @vijaygusain119 Pƙed 5 lety +1

    Trust me leila this is the best start for me. Thanks!

  • @motivation_day_day
    @motivation_day_day Pƙed 6 lety

    Thanks Leila for never make me disappointed for following u.i am already sure that this vba series will be awesome and who knows maybe this time i ll also learn 😃

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      I'm glad to hear that! I'm looking forward to some of your macros :)

  • @Amazing4u
    @Amazing4u Pƙed 4 lety

    Thank you Leila, it was a very clear and direct to the point lecture. I will look for more in your channel.

  • @sarojsuwal9434
    @sarojsuwal9434 Pƙed 6 lety +1

    Great ! VBA coding is what I've been waiting to learn from you since long time ago.

  • @sarasamin
    @sarasamin Pƙed 5 lety +2

    Thank you so much for the VBA introductory video! You made it easy for a rookie like me

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety +1

      I'm glad to hear that! Thank you Sara.

  • @frikkievandermerwe
    @frikkievandermerwe Pƙed 4 lety +7

    Thank you for your amazing work. I've just bought one of your courses on Udemy on Excel Dashboards and I am super impressed. You truly have an amazing, God-given gift to explain in such a way that anyone can understand. Keep it up and be blessed in all that you do!

  • @zahamdani
    @zahamdani Pƙed 6 lety

    Again you are on the top. Excellent way of explanation, especially for beginners.

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Thank you! Glad you like the explanation. Thanks for your support.

  • @charleskenyon6638
    @charleskenyon6638 Pƙed 5 lety

    Excellent and crystal clear explanation!
    Full of admiration for all your videos

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety

      Thank you Charles! Glad you like the tutorials.

  • @georgekiwi8178
    @georgekiwi8178 Pƙed 5 lety +10

    Great Video Leila! :) Subscribed!

  • @gurnambajwwa
    @gurnambajwwa Pƙed 4 lety

    Awesome videos by you. I like all of them. Thanks for helping hundred of thousands of people.

  • @marutsega387
    @marutsega387 Pƙed 6 lety

    Very comfortable approach including your physical appearance. Thanks Leila.

  • @arturojoseg55
    @arturojoseg55 Pƙed 2 lety

    I love your videos. You're the best! Awesome tutorial. Thanks a lot

  • @jasoncoleman1892
    @jasoncoleman1892 Pƙed 5 lety

    Thank you very much Leila. You took a lot of mystery out of VBA code writing.

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety

      Glad I could help with the Demystification :)

  • @ohromujici
    @ohromujici Pƙed 4 lety

    You are a great teacher. Thank you for making this video series.

  • @ashisbasak1175
    @ashisbasak1175 Pƙed 6 lety

    Thanks Laila for starting this VBA tutorial. Expecting to learn great VBA from your great tutorial in coming days :)

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're very welcome. Yes will be posting more soon :)

  • @gig777
    @gig777 Pƙed 6 lety

    Thanks Leila. I've been waiting for some VBA stuff from you. It is a topic I stumble through. :)

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety +1

      You're welcome. It does take some time to get the hang of it....but it's really fun once things start to make sense :)

  • @minnisong6143
    @minnisong6143 Pƙed 5 lety +6

    Love Love Love as usual!!

  • @damonwilliams4688
    @damonwilliams4688 Pƙed 4 lety +1

    Thank U !! Love your training style

  • @traewilson6759
    @traewilson6759 Pƙed 5 lety

    Thanks so much! Very easy to understand and follow.

  • @damianlerma1334
    @damianlerma1334 Pƙed 6 lety

    i love you Leila! you are one of the best teaching excel!

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety +1

      That's really kind! thank you. I'm glad you like the teaching style.

  • @srinivasanb1961
    @srinivasanb1961 Pƙed 4 lety

    Your video on Excel VBA is rocking. Keep it up!

  • @muhammadishfaq5667
    @muhammadishfaq5667 Pƙed 3 lety +1

    Hi mam ur way of teaching is so nice. I m from Pakistan and by watching ur videos I have become a master in excel

  • @ibrarahmad9104
    @ibrarahmad9104 Pƙed 3 lety

    Thanx a lot
    Your method of teaching is awesome and easy to understand even for non-English persons

  • @manodura8132
    @manodura8132 Pƙed 4 lety

    Very effective style of teaching. I learned some nice tricks here. Thanks a lot !!

  • @kavitapanchal7779
    @kavitapanchal7779 Pƙed 5 lety

    Excellent teaching skill, use easy to understanding methods...every lesson for vba as well as excel are very easy to understand...thank you mam...

  • @zeyushang2990
    @zeyushang2990 Pƙed 5 lety

    thank you so much !!! i just realize how important vba is in real work life, wish i studied harder about it when i was in school

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety

      You're welcome. It's never too late to learn...

  • @sachinme
    @sachinme Pƙed 3 lety

    Hi Leila, your explaination and presentation is very good.

  • @SumanGupta-nd7pz
    @SumanGupta-nd7pz Pƙed 4 lety

    Thanks Leila your videos on excel had helped alot

  • @FlowerEconomics
    @FlowerEconomics Pƙed 3 lety

    You have the best videos on CZcams!

  • @ismailismaili0071
    @ismailismaili0071 Pƙed 6 lety +3

    thank you so much for starting VBA because it's my weakness in excel and i'm sure you can explain it better and easier.

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're very welcome Ismail. I hope to explain it as simple and easy as possible :)

    • @bijaymaharana2262
      @bijaymaharana2262 Pƙed 6 lety

      thank you mam for vba tutorial uploaded.

  • @marcellokassa6975
    @marcellokassa6975 Pƙed 6 lety

    Thank you so much Leila... This video is just amazing and so useful! I think I got the easiest way of dealing with VBA... Thanks!

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're very welcome Marcel! Thank you for your comment & support. I'm very happy to hear you find the video useful and easy to follow :)

    • @marcellokassa6975
      @marcellokassa6975 Pƙed 6 lety

      Love so much Leila... Thanks to you I toy with Excel like a pro. Thank you so much again!

  • @sarasamin
    @sarasamin Pƙed 5 lety +1

    Another good lesson!! thank you

  • @assamiyou
    @assamiyou Pƙed 6 lety

    Thank you very much Leila. Best instructor

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're welcome & thank you. That's really kind Jonas!

  • @ProgramadorExcelVBA
    @ProgramadorExcelVBA Pƙed 4 lety

    ParabĂ©ns Leila pelo conteĂșdo.

  • @user-mp5im
    @user-mp5im Pƙed 6 lety

    Thanks Leila your teaching style is good

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're welcome. Thank you! Glad you like the teaching style.

  • @cookingfortwo9783
    @cookingfortwo9783 Pƙed 2 lety

    I like your channel. Your contents never grow old. Kudos.

  • @samueldonkoh44
    @samueldonkoh44 Pƙed 6 lety

    Thanks Leila for this excel VBA course.

  • @intisarkhalil7568
    @intisarkhalil7568 Pƙed 2 lety

    Thank you very much Leila
    Great work

  • @yosef-yosef9414
    @yosef-yosef9414 Pƙed 3 lety

    VERY helpful and clear explanation ...
    Thank you Leila Gharani you're so great and bright ..

    • @LeilaGharani
      @LeilaGharani  Pƙed 3 lety

      Glad it was helpful!

    • @yosef-yosef9414
      @yosef-yosef9414 Pƙed 3 lety

      @@LeilaGharani
      what the ...
      I'M NOT EXPECTING YOUR REPLY YOU DON'T KNOW HOW HAPPY I AM RIGHT NOW Leila 😅😘💞💋😍

  • @thinkthinktechs1119
    @thinkthinktechs1119 Pƙed 3 lety

    Amazing work leila

  • @irviantantohaditomo8917
    @irviantantohaditomo8917 Pƙed 6 lety

    Good video so I can understand how to build and edit VBA. Thank you.

  • @vikasdsem9914
    @vikasdsem9914 Pƙed 6 lety

    Cool... Now it Started for which I'm waiting for 'VBA". Thanks for ur video

  • @mohitdhanwani5540
    @mohitdhanwani5540 Pƙed 6 lety

    Thanks for uploading this...need more of this!

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety +1

      You're fast :) I'll put out more for sure. Thanks for the support.

    • @mohitdhanwani5540
      @mohitdhanwani5540 Pƙed 6 lety

      Leila Gharani :-)😀

    • @mohitdhanwani5540
      @mohitdhanwani5540 Pƙed 6 lety

      Always follow your videos....so helpful they are and very very well explained too!
      Thank you so much for the videos!

  • @peterbarreca1568
    @peterbarreca1568 Pƙed 4 lety

    Your videos are the best.

  • @abasahmad1640
    @abasahmad1640 Pƙed 4 lety

    Hi Leila.
    It was really a great video.. Thumbs Up ...... I hope next videos will also be like this .. great job done..
    Regards

  • @Juan-Hdez
    @Juan-Hdez Pƙed 5 měsĂ­ci

    Very useful. Thank you!

  • @mauriciomunozortiz
    @mauriciomunozortiz Pƙed 5 lety

    Thank you very much for the video, very helpful.

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety

      My pleasure Mauricio. Glad the tutorial is useful.

  • @venkatkrishnan4797
    @venkatkrishnan4797 Pƙed 4 lety

    Hi Leila awesome! Thanks for this videos, its helped me a lot

  • @aldrickwa6895
    @aldrickwa6895 Pƙed 6 lety

    I already know it will awesome. I've liked already.

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Wow! That was fast! Thank you for the trust :)

  • @22cranbrookave
    @22cranbrookave Pƙed 4 lety

    Great presentation. I can do programming but didn't have in depth understanding of basics.

  • @ashishmohan4707
    @ashishmohan4707 Pƙed 6 lety

    thanks leila keep it up ur video really really really useful not only for learning purpose although i use ur trick for my dashboard and GL and PL account

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're welcome. I'm glad you use one of the tricks for your dashboard.

  • @1gopalakrishnarao
    @1gopalakrishnarao Pƙed 6 lety +4

    EXCELLENT, I thank sincerely for publishing this video on VBA. Your style of explaining the things/concepts, very very informative, inspiring, revealing, thought provoking , interesting & injects a love spirit to learn Excel/VBA for faring better officially/personally. I pray the almighty to bestow good health, prosperity and let more number of people learn the Excel/VBA and do good to the society at large. BIG SALUTATION FROM THE BOTTOM OF MY HEART TO MY LOVELY AND BEAUTIFUL TEACHER. NAMASKAR.

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Thank you very much Gopala for your very kind comment. I am very happy to hear you enjoy the tutorials & find them useful :) Thank you for your continuous support.

  • @muhammedabd8405
    @muhammedabd8405 Pƙed 4 lety

    great interduce.. i will follow it

  • @joelbeauchamp6687
    @joelbeauchamp6687 Pƙed 4 lety +2

    All hail Leila!
    Im in love with this channel

  • @DanSchallerforPOTUS
    @DanSchallerforPOTUS Pƙed 3 lety

    I learned some of this (and quite a bit of different stuff) while using Enterprise 6.0. - Mind you, that is more for creating applications has a whole and it has a compiler for it (to use when it has been debugged and is ready for distribution). - Still, very good (useful) information.

  • @rakhilamamenova4176
    @rakhilamamenova4176 Pƙed 2 lety

    Thank you Leila for the great tutorial! Are there any videos how to create a pop up labeling or hover over on scatter plot graph?

  • @yurd563
    @yurd563 Pƙed 5 lety

    Thanks for video!

  • @biswajit6708
    @biswajit6708 Pƙed 6 lety

    Thanks a lot. Please upload more on VBE for beginner.

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're welcome. Yes, sure. - I'll post a few videos on these from my course.

  • @Marcorutz
    @Marcorutz Pƙed rokem

    You are the best 👍

  • @MasterKenfucius
    @MasterKenfucius Pƙed 5 lety

    You're a very good teacher. Thank you. Do you know if Microsoft will ever update the programming in excel to have C# as well as VB?

  • @e-learningeverything6741
    @e-learningeverything6741 Pƙed 3 lety

    Very good lesson

  • @munyaradzidamson2214
    @munyaradzidamson2214 Pƙed 5 lety

    You are a star.

  • @pakdhebengal
    @pakdhebengal Pƙed 6 lety +2

    THANK

  • @sandeepys7560
    @sandeepys7560 Pƙed 4 lety

    Have taken the course on Udemy as well. Thank you for the amazing material..!

  • @moi984
    @moi984 Pƙed 3 lety

    Nice!!

  • @antrikshsharma6990
    @antrikshsharma6990 Pƙed 6 lety +1

    seems like the VBA series has finally started as promised back in December :)

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Yes. It took a while but it's finally here. I had to structure the original course first so I could also post videos here in a way that was easy to follow... but once the course is out, I'll have time to make separate VBA videos just for the channel here. Let me know if there are any topics you'd like to cover.

  • @lubeganasser694
    @lubeganasser694 Pƙed 6 lety

    Hi Leila.Thanks for the tutorials,indeed they are useful.I want to learn how to generate a user form with drop down list in excel 2016

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Hi Lubega - I have this topic actually included inside the course. I'll see if I can add a few of the user form videos on CZcams as well...

  • @mearshi
    @mearshi Pƙed 5 lety

    Liked the video and subscribed instantly...

    • @LeilaGharani
      @LeilaGharani  Pƙed 5 lety

      Thank you. It's great to have you here.

  • @nisarahmed5869
    @nisarahmed5869 Pƙed rokem

    Excellent

  • @mirkomilrasulov977
    @mirkomilrasulov977 Pƙed rokem

    you are amazing

  • @Dev_Bartwal
    @Dev_Bartwal Pƙed 6 lety

    Thanks LG
    I am really interested for VBA
    I am confident make better future becoz of LG
    Thanks a lot with love ❀

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      You're very welcome Dev. Yes - VBA can do great things and it's also lots of fun :)

  • @shadbhowmik7
    @shadbhowmik7 Pƙed 4 lety

    Great Tutorial! You are always impressive. Can you please make a tutorial on EXCEL VBA Web Form Automation? This will help us a lot.

  • @rsajr1
    @rsajr1 Pƙed 5 lety +1

    Enjoyed the Video

  • @tamarastrang5059
    @tamarastrang5059 Pƙed 5 lety

    Thank you.

  • @accountingjobwantedanywher8220

    Is an great and use full to us

  • @enricopunta2819
    @enricopunta2819 Pƙed 4 lety

    Hi, I have a rather difficult question: I got a file Excel with activation macro. I use many conditional formatting and I wish that the interval of application would remain unchanged. I think that the problem are the macros but I obtain no effect registering a macro and setting the conditional formatting. Do you have any ideas? Thanks

  • @nagsan2000
    @nagsan2000 Pƙed 6 lety +1

    your videos are nice and i love it. i would love to see your VBA course in Udemy

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Thanks! Glad you like them. Looking forward to your feedback on the course.

  • @abrorabdolyozov8679
    @abrorabdolyozov8679 Pƙed 5 lety

    Thanks a lot

  • @menitijalansunyi
    @menitijalansunyi Pƙed 2 lety

    Alhamdulillah.
    Thank You Leila.

  • @courthan1601
    @courthan1601 Pƙed 6 lety

    It would be amazing if you do a beginners intro to cross application referencing using excel VBA! Great videos. Keep it up. 100k Subs soon hopefully

    • @LeilaGharani
      @LeilaGharani  Pƙed 6 lety

      Thanks for your suggestion. I cover connecting to PowerPoint, Word and Outlook inside the course. I'll see what I can put on CZcams here as well.... I'm also glad to hear you like the videos. 100k subs or not.... I'll be happy if a few people happen to benefit from the videos :) Thank you for your support.

    • @dannyblazer4325
      @dannyblazer4325 Pƙed 5 lety

      Court, are you talking about API programming? Like connecting VBA to other apps/technologies?

  • @srikanthkasala7850
    @srikanthkasala7850 Pƙed 6 lety

    Grand Welcome... We're also waiting for your classes in you tube channel for VBA Class starts from basics of arrays and modules...

  • @ddp2049
    @ddp2049 Pƙed 2 lety +1

    Hello Leila do you recommend saving the macro in a excel file.

  • @bluejeans706
    @bluejeans706 Pƙed 4 lety

    Great intro video! Would you have one on docking/resizing the vbe windows. I have managed to "undock" them and they overlap now. The check boxes are all marked under Tools>options as being docked, but they are not snapped in. I've tried resizing them and while functional, they just look messy. :P

  • @necyv2887
    @necyv2887 Pƙed 2 lety

    Subscribing love it.

  • @khalidalisubhanallah2947
    @khalidalisubhanallah2947 Pƙed 6 lety

    NICE VIDEO

  • @robertakwasiadjei8223
    @robertakwasiadjei8223 Pƙed 6 lety +1

    Thanks Leila

  • @FRAN-vd9rl
    @FRAN-vd9rl Pƙed 3 lety

    hi Leila, what is the difference between intellisense (pressing control + J) and complete word (pressing control + space). do they behave the same way and autocomplete the same things? i only use intellisense and sometimes some things are not autocompleted or don't show up in the intellisense list, or no list is displayed at all despite the code is accurate

  • @priteshugrankar6815
    @priteshugrankar6815 Pƙed 4 lety

    The socratica of Excel!!

  • @shakebusmani
    @shakebusmani Pƙed 4 lety

    Laila jan you are the best ..I am proud to be one of your online student. Mamnoonam

  • @AnilSharmasirji
    @AnilSharmasirji Pƙed 4 lety

    What is the use of ctrl+f11 (macro sheet) which look slightly different from normal excel sheet

  • @harsharankaurdhillon2581
    @harsharankaurdhillon2581 Pƙed 4 lety

    Hello Leila, I am trying to run macros to multiple sheets but all of them shares the different format. Is there any way I can record my macro with keyword?
    Thank you,

  • @mehdihammadi6145
    @mehdihammadi6145 Pƙed 6 lety

    Well done