The 7 Keys Areas of Excel VBA (with code examples)

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 97

  • @sasavienne
    @sasavienne 5 років тому +16

    Every time I feel happy when I get an information that you uploaded a new video because I know that it is going to be very helpful and quite useful. Thanks indeed Paul. 👏 🌟 🌟 🌟

  • @rajkumarpalle8217
    @rajkumarpalle8217 Рік тому +1

    Thank you.. It was nice video..

  • @SolidSnake59
    @SolidSnake59 5 років тому +11

    This must be some record - 3 days of VBA training squeezed into 28 minutes. Bravo!

  • @rrrprogram8667
    @rrrprogram8667 5 років тому +1

    You are the KING of VBA

  • @robinhahn6987
    @robinhahn6987 5 років тому +3

    I've written quite a few apps in Excel VBA (probably using very kludgy code - this was over years before the great resource that is UA-cam and excellent videos such as yours, Paul) and am currently in process of revising many of them, only just to simplify the code, clean up the bugs and most probably speed those apps up a bit. Of all the tutorials and videos I've read or seen, yours easily offer the most truly game-changing suggestions! Thank you!

  • @Excelmacromastery
    @Excelmacromastery  5 років тому

    Hi everyone. Please enjoy the videos and add any comments you may have below😀😀

  • @mxrvxn08
    @mxrvxn08 2 роки тому +1

    Easy to follow and understand tutorial. Thank you

  • @jlzpacheco
    @jlzpacheco 2 роки тому

    AWESOME VIDEO! Perfect for finding yourself in this forest of knowledge!

  • @akshayc7152
    @akshayc7152 3 роки тому

    God of excel VBA..🙏

  • @LordBransty
    @LordBransty 4 роки тому +1

    You're a very gifted educator Paul. I've been programming for years in VBA, and you keep showing me all kinds of things I had no idea about. Excellent content taught in a very friendly manner.

  • @CuriousEngineer955
    @CuriousEngineer955 2 роки тому

    Thank you so much paul.

  • @Whatarewefixingtoday
    @Whatarewefixingtoday 5 років тому +3

    My Employer thanks you for making me more efficient!

  • @henrikijonkoping4694
    @henrikijonkoping4694 2 роки тому

    Great, dictionary was new for me!

  • @clandeszipp4564
    @clandeszipp4564 6 місяців тому

    Thank you.
    Sometimes I wonder what is the gain in VBA speed all over the world (and economical gain for that matter) thanks to these lessons.

  • @hadibq
    @hadibq 2 роки тому

    Great channel! Thanks!

  • @redangrybird7564
    @redangrybird7564 4 роки тому +1

    You are a Champ, thanks and God bless you.
    ✌😀

  • @alterchannel2501
    @alterchannel2501 Рік тому

    Thank you for the basics. I'm a bit confused, in the example you are Debug.printing the Dictionary results, but how do I transfer the results to Excel?

  • @MrVicmanr90
    @MrVicmanr90 5 років тому +2

    Awesome! I'm learning a lot. Thank you for sharing your knowledge.

  • @joaocustodio2094
    @joaocustodio2094 5 років тому +1

    Thanks Paul.

  • @rrrprogram8667
    @rrrprogram8667 5 років тому +3

    Can u please give ur suggestions on how to use intellisense...
    Some times it doesn't work and make feel worry sometimes..
    Example.. Activesheet.paste will not be shown with intellisense... I know that it has to do something with object library...
    Can u please make video how to use object library

  • @rrrprogram8667
    @rrrprogram8667 5 років тому

    Nice video to refresh and revise ur understanding... Thanks paul

  • @joaocustodio2094
    @joaocustodio2094 5 років тому

    Well done Paul.
    As always, very clear and didactic.

  • @eddai84
    @eddai84 4 роки тому

    Hi Paul. It's amazing knowledge. Thanks for sharing.

  • @ferkik.3245
    @ferkik.3245 5 років тому

    Thank you for your video. I'm using vba for a while but learnt a lot from your video to simplyfy my code. Currentregion is a very usefull code i didnt know that realy like it. Nowdays im working with data where there are blank rows what i cant delete. Do you have any tool how to handle this type of database?

  • @BrianJones_cswp
    @BrianJones_cswp 5 років тому

    Thanks for making these videos, they've been extremely helpful to me! Clear, concise explanations in terms I can grasp, and the pace is spot on👍,subscribed.

  • @xxrobcollinsxx
    @xxrobcollinsxx 4 роки тому

    Excellent video again, thanks!

  • @grahamparker7729
    @grahamparker7729 5 років тому +1

    Really enjoyed this, gave a great overview 👌🏻

  • @vivekphadke16
    @vivekphadke16 5 років тому

    Very useful for VBA novice like me, Thanks

  • @guss372
    @guss372 5 років тому

    Excelente, saludos desde Salta Argentina

  • @sebastiansalazar3553
    @sebastiansalazar3553 5 років тому

    Very smart and simple. Now, for me is easy to filter thousands of data. Thank you very much indeed.

  • @rrrprogram8667
    @rrrprogram8667 5 років тому

    Excellenttttt..... Thanks for the video..

  • @thearchibaldtuttle
    @thearchibaldtuttle 5 років тому

    Very nice as always!

  • @subhramanyemdudey2941
    @subhramanyemdudey2941 4 роки тому

    Amazing Video

  • @andywong6025
    @andywong6025 2 роки тому

    Dear Sir,
    for the dictionary part,
    if the value (amount) of the key (Fruit) is zero in sum, will it be shown in the dictionary?
    i just wanna be using the dictionary for my inventory record, sometimes it may be zero in number.

  • @Funintherain13
    @Funintherain13 4 роки тому

    Hi Paul, big fan of your channel. Do you do vba consultancy?

    • @Excelmacromastery
      @Excelmacromastery  4 роки тому

      Hi Jonny,
      I do consultancy but I am not currently available due to the number of ongoing projects.

  • @stephanweaver1960
    @stephanweaver1960 4 роки тому

    Well done

  • @PrincePedia
    @PrincePedia 5 років тому

    Great , Thanks

  • @Shady_Lane
    @Shady_Lane 4 роки тому

    hey, great content
    @4:11 can you send arrays from one sub/function to another in this way?

  • @grigull
    @grigull 5 років тому

    Could you teach the use of listviews instead of listboxs?

  • @chrstfer2452
    @chrstfer2452 3 роки тому

    Is there a reason you use Long for the row in your dynamic ranges example? Naively I'd think that should be an integer; like, what would happen if you gave it a fractional value? I'm totally new to excel vba, so please forgive me if excel or vba does something I don't know about which makes this the best practice.

    • @Excelmacromastery
      @Excelmacromastery  3 роки тому

      Because the integer range is -32,768 to 32,767 which is low.
      The Long range is -2,147,483,648 to 2,147,483,647

  • @mrsachu88
    @mrsachu88 2 роки тому

    Hi. I am getting Compile error: Variable not defined when I use sub UseRanges(). How to solve it?

  • @meldeebueno
    @meldeebueno 5 років тому

    Havent watched the video yet but thank you. Your videis provide me invaluable lessons in VBA.

  • @landor703
    @landor703 5 років тому +1

    Great video - as always. I do have a question in the area of going through a range using an array vs a dictionary. You used a different technique for each. For array, you used " dim arr as variant" , got the array and went through it from LBound to UBound. For dictionary, you used "dim rg as range" and went through it from 1 to rg.rows.count. Why was there a difference? Could I have used one technique in both cases? Or do I have to use one for array and one for dictionary?
    Thanks again.

    • @Excelmacromastery
      @Excelmacromastery  5 років тому +1

      For an array you need to use lbound/unbound. For other objects 1 to Count.

    • @landor703
      @landor703 5 років тому

      It’s that simple? Thanks for the clarification

  • @paulkarch3318
    @paulkarch3318 5 років тому

    At 10:56 when accessing a different workbook I got a little nervous but I guess the condition locks you out if someone is changing data in the external workbook.

    • @Excelmacromastery
      @Excelmacromastery  5 років тому

      It's read-only so reading from the last time the file was saved: bit.ly/2m5QLn6

  • @alexandrumarcel3696
    @alexandrumarcel3696 5 років тому +1

    Except the dictionary part I can say I know the other ones, but still I m afraid to apply for a vba developer job because I don t know which are the expectations ...

  • @Snafuey
    @Snafuey 4 роки тому

    Question about the dictionary. The for each loop at the end you say currentKey in dict.Keys. The currentKey make sense cause you declared it as a variant. Where did the .Keys plural come from?

  • @vdpeer
    @vdpeer 3 роки тому

    Ahh. I see that you've changed the name of the sheet to shdata. That answers my question.

  • @SAMSITARAGUYANG
    @SAMSITARAGUYANG Рік тому

    Why shData not error "variable not defined" sir?

  • @henrikijonkoping4694
    @henrikijonkoping4694 4 роки тому

    But is the efficiency so much bigger working in VBA instead of working direct in the spreadsheet?

    • @Excelmacromastery
      @Excelmacromastery  4 роки тому +1

      Yes. Exponentially faster if you have a large data set.

    • @henrikijonkoping4694
      @henrikijonkoping4694 4 роки тому

      @@Excelmacromastery Thank you for the answer. This could also be taken up in your videos on youtube. You are great on youtube!

  • @sebastian1200
    @sebastian1200 Рік тому

    I would add 2 more areas to that:
    Forms (developing apps) and classes/interfaces 😄

  • @vdpeer
    @vdpeer 3 роки тому +1

    ShData isn't an object, at least in Office 365 version of Excel.

  • @johnphillips6851
    @johnphillips6851 4 роки тому

    The example of the Ranges doesn't work and gives me the Run Time Error 424 and I have meticulously verified the code I typed to what is in the video. does anyone know why this would be? I'm currently on Office Home and Student 2016. Thanks in Advance.

  • @rrrprogram8667
    @rrrprogram8667 5 років тому

    Can we use AND in case statement??... How do i write?? For example the below code doesn't work
    case > 1500 and < 2000..

    • @Excelmacromastery
      @Excelmacromastery  5 років тому

      Case 1501 to 1999
      or
      Case Is > 1500, Is < 2000
      excelmacromastery.com/vba-select-case/#Case_Statement_Quick_Guide

  • @basemsat4601
    @basemsat4601 4 роки тому

    Please , i have this problem, my code
    for i = 1 to 100
    if worksheets(“sheet1”).cells(i,1).value = i ----this dont work
    when i change i to 1 it works like this
    if worksheets(“sheet1”).cells(i,1).value = 1----work
    i try convert the cell covert the every value no way , thanks

  • @bassisessaidexcel
    @bassisessaidexcel 5 років тому

    Merci

  • @АнтуанДеляМоль
    @АнтуанДеляМоль 2 роки тому

    hello there ! General Kenobi !

  • @rrrprogram8667
    @rrrprogram8667 5 років тому

    Hit like and watch the video

  • @bondniko
    @bondniko 3 роки тому

    Go raibh maith agat. An-úsáideach mar i gcónaí.

  • @Morphineck
    @Morphineck 4 роки тому

    I really like your videos and respect your work... however, that has got to be the worst ever example of what a function is and how to use it.
    Bro, the main reason you use functions is to be able to include them as part of formulas (i.e. a text formula that includes regular expresions) or to consult data from external DB's (a function that gets a Part Number from a DB of vendors). All without the need to include buttons or to map them on your interface, you just type = then start typing however you named your function and voila.

  • @Molnify
    @Molnify 5 років тому

    Awsome video! If you want to, check out my channel where I show how you can turn Excel files into web apps without coding or extra software!

  • @tughanozsezer9332
    @tughanozsezer9332 5 років тому

    .

  • @rrrprogram4704
    @rrrprogram4704 4 роки тому

    Can u please give ur suggestions on how to use intellisense...
    Some times it doesn't work and make feel worry sometimes..
    Example.. Activesheet.paste will not be shown with intellisense... I know that it has to do something with object library...
    Can u please make video how to use object library