How to Customize Controls in Excel VBA

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 42

  • @Trucpq
    @Trucpq ปีที่แล้ว +6

    Thanks a lot. Class Module is so strong but not many person can explain as good as you.

  • @wizardofaus8473
    @wizardofaus8473 ปีที่แล้ว +4

    Thanks Paul. You are one of my favourite teachers. I consider myself fortunate that you happen to teach a topic I have great interest in.

  • @fahadsardar6180
    @fahadsardar6180 5 หลายเดือนก่อน +1

    You are genius. Definitely we want you to keep making such educational videos.

  • @jacksonmacd
    @jacksonmacd ปีที่แล้ว +1

    Paul - I normally use MS Access for my development, but I often follow your TH-cam channel. By coincidence, the online Access Users Group recently had two demonstrations of WithEvents, so I was intrigued by your video. It took me a while to understand how to create an Excel User Form, but once I had it working, I was highly impressed by your work. I intend to see if I can implement the same concept in my Access projects. Thank you for posting.

  • @iincitr
    @iincitr ปีที่แล้ว +2

    Again, this is an excellent explanation. I like every piece of information that you share. Thank you.🙂

  • @faisalalhazmi7351
    @faisalalhazmi7351 4 หลายเดือนก่อน

    Thanks for this informative lessons

  • @k0023382
    @k0023382 ปีที่แล้ว +5

    Excellent, I wish you can do more real samples like this one using Classes in the future, I have noticed most tutorials cover very simple examples with no real /practical use.

  • @astollie
    @astollie 11 หลายเดือนก่อน

    Nice video. I like the stepped and structured way you explain advanced functions like withevents and classes. The demonstration in a practical application makes it even more stimulating to take the unsure step into trying something new that once mastered is so helpful. Great work! thanks.

  • @mmbcampus
    @mmbcampus 11 หลายเดือนก่อน

    This is awesome. Great man... I really enjoy your video... Basic fundamental explanations from scratch, then project build-up...

  • @Rapture1469
    @Rapture1469 ปีที่แล้ว +1

    Nice! You are at another level with your code.

  • @Excelcopilot7
    @Excelcopilot7 ปีที่แล้ว

    Great video!! Thank you. I am happy to use VBA.

  • @yeahnick4260
    @yeahnick4260 5 หลายเดือนก่อน +1

    Hi Paul, i would highly appreciate if you would create a video about writing own custom events outside of Userforms. Because i am curious about the benefits of creating own Events.

  • @martinlenaerts
    @martinlenaerts ปีที่แล้ว

    Incredibly useful video. I've heard of using Withevents before, but your explanation somehow makes it more accessible and understandable. What I understand (but you did not explain explicitly) is, that the method you present does not inhibit the normal event calls in the userform itself.
    I've been developing a userform application that has a lot of textboxes, comboboxes etc. So I decided to add a Help-textbox at the bottom of the userform that displays dedicated helptext. For this, I use the even _Enter(). That's indeed a lot of code that I can now replace with the class withevents. Thanks so much!

  • @peterwooldridge7285
    @peterwooldridge7285 ปีที่แล้ว

    Now that's a nice Xmas present...Cheers Paul

  • @claudiomacamo1396
    @claudiomacamo1396 11 หลายเดือนก่อน

    Very useful. Thank you

  • @danieladeti4149
    @danieladeti4149 11 หลายเดือนก่อน +1

    Well Explained

  • @kumarsharmaajit4811
    @kumarsharmaajit4811 10 หลายเดือนก่อน

    wow! this is something worth learning! :)

  • @edgarrocha9536
    @edgarrocha9536 ปีที่แล้ว

    Great Video! So Usefull. A Suggestion for future videos is show some examples with custom controls with RaiseEvent method to create custom events, and how to deal with it in Form itself, when you use an array of objects.

    • @Excelmacromastery
      @Excelmacromastery  ปีที่แล้ว +1

      Thanks. I debated including Raise events but in the end I thought it might lead to confusion. I may do a video on this topic in the future.

  • @fahadsardar6180
    @fahadsardar6180 5 หลายเดือนก่อน

    Wow.
    Thank you very much

  • @MagicOfMushrooms
    @MagicOfMushrooms 10 หลายเดือนก่อน

    I love this and all your videos. Question, how did you add that "Statistics" button at around 15:55?

  • @chemikbezreakcji3704
    @chemikbezreakcji3704 7 หลายเดือนก่อน

    Great video- class modules are awesome.
    But I have a question 13:57 is it a good practice to use the i variable as long since only 9 values are stored. Is it better to use in this case "as Integer" or even "as Byte"?

  • @MoraTara
    @MoraTara 7 หลายเดือนก่อน

    Hello, thank you for the video. I need help, please
    What should we do?
    If the site requires you to log in first, then scrape the data from it after that

  • @adalbertdudziak1792
    @adalbertdudziak1792 11 หลายเดือนก่อน

    Hi, great tutorial! Is it possible to return to a class the name of the control that initialized this class?

  • @AbdulRahmanSABRA
    @AbdulRahmanSABRA ปีที่แล้ว

    Dear Paul , I usually use collection of Textboxes in Userform , my question is there any difference between Array and collection ?

  • @ragnarok7976
    @ragnarok7976 ปีที่แล้ว +3

    Keep in mind that class that uses withevents must maintain its reference or the events will not fire.
    If you had declared the class locally in a method then the event fires after that method exits the reference will be destroyed and the code you've bound to that event will not fire.
    This has caused me hours of confusion and troubleshooting in the past so I figured I'd share it here.

    • @Excelmacromastery
      @Excelmacromastery  ปีที่แล้ว +2

      Very true. That's why it is better to declare at the top of a UserForm so it can be used throughout that UserForm's lifetime.

    • @ragnarok7976
      @ragnarok7976 ปีที่แล้ว

      @@Excelmacromastery Your code is great as usual. My only worry was that people will likely not be copying it verbatim but rather adapting the principles to their own project.
      In my case I was making a unique toggle button group and after adding the buttons to the group I knew I would never need to explicitly reference the group again but little did I know that these proxies are implicitly referenced and these "lite references" are not enough to keep the proxies from being destroyed when they go out of scope.

  • @hammeedabdo.82
    @hammeedabdo.82 ปีที่แล้ว

    I am interested in algorithmic trading with VBA. Any tips?
    Do you know any websites or forums that focus on algorithmic trading with VBA that you would recommend?

  • @Simplifiedsurveying
    @Simplifiedsurveying 7 หลายเดือนก่อน

    How do you then access the properties of another
    For example of I wanted the user to type in textbox2 and the value appears in textbox1.
    I want to use similar experience, I created buttons when a user hovers over it, it changed color and when exits it goes back to the original color, I wrapped a textbo around the button to capture mouse movement when the user exits the button but this textbox can't change the properties of the button when in class module

  • @budiyanto1531
    @budiyanto1531 2 หลายเดือนก่อน

    The Class for Controls doesn't have Enter, Exit, BeforeUpdate, and AfterUpdate events. How can we get around for this? Thanks before, Paul..

  • @mihalydozsa2254
    @mihalydozsa2254 7 หลายเดือนก่อน

    I love your videos, but the searchable combobox could be done simpler. I know why you did it this way. But if you use a dictionary to filter and make the default list that way it does not glitches out and it is still fast enough, even with 30000 rows. And you have a combobox with all unique entry. And it is scalable to multiple combobox.

  • @hammeedabdo.82
    @hammeedabdo.82 ปีที่แล้ว

    Do you think there will still be a demand for VBA programmers in the coming years, especially with the changing landscape and the rise of AI?

    • @Excelmacromastery
      @Excelmacromastery  ปีที่แล้ว

      Yes. Even if VBA was replaced today there is still hundreds of millions of lines of code to be supported. That said there is no replacement for VBA right now.
      * Office Script can only do a fraction of what VBA does and it requires using Power Automate for events.
      * Python requires third party software to connect to the object model and installation can be problematic.