How to Master the VBA Message Box in 6 Minutes

Sdílet
Vložit
  • čas přidán 15. 11. 2022
  • 👉 Ready to master VBA?
    - Check out my full courses: courses.excelmacromastery.com/
    - Subscribe to the channel here: bit.ly/36hpTCY
    -Want to download the source code for this video? Go here: bit.ly/3hNCVlN
    (Note: If the download page doesn't work then make sure to turn off any popup blockers)
    How to Master the VBA Message Box in 6 Minutes
    The VBA Message Box is a very powerful tool. But most users are unaware that it is highly configurable. In this video, you will learn how to master the message in just 6 minutes. You will be able to easily set buttons, icons, highlight a button with a few simple parameters. You will also and easily detect which button the user clicked.
    #VBAMsgBox #VBAMessageBox #ExcelVBAMessageBox
    Useful VBA Shortcut Keys
    ========================
    Debugging:
    Compile the code: Alt + D + L OR Alt + D + Enter
    Run the code from the current sub: F5
    Step into the code line by line: F8
    Add a breakpoint to pause the code: F9(or click left margin)
    Windows:
    View the Immediate Window: Ctrl + G
    View the Watch Window: Alt + V + H
    View the Properties Window: F4
    Switch between Excel and the VBA Editor: Alt + F11
    View the Project Explorer Window: Ctrl + R
    Writing Code:
    Search keyword under cursor: Ctrl + F3
    Search the word last searched for: F3
    Auto complete word: Ctrl + Space
    Get the definition of the item under the cursor: Shift + F2
    Go to the last cursor position: Ctrl + Shift + F2
    Get the current region on a worksheet: Ctrl + Shift + 8(or Ctrl + *)
    To move lines of code to the right(Indent): Tab
    To move lines of code to the left(Outdent): Shift + Tab
    Delete a Line: Ctrl + Y(note: this clears the clipboard)
  • Věda a technologie

Komentáře • 33

  • @Excelmacromastery
    @Excelmacromastery  Před rokem +1

    DOWNLOAD 20+ Message Box Examples from here: bit.ly/3hNCVlN

  • @vipulDJhaveri
    @vipulDJhaveri Před rokem +3

    Crisp with clarity at its best , thanks a lot Master

  • @andrewbouc6015
    @andrewbouc6015 Před 11 měsíci

    clear, concise, showed results of different code, gives enough context for me to go get my ideas into VBA without needing it spelled out for me. Perfect!

  • @hammeedabdo.82
    @hammeedabdo.82 Před rokem +1

    Thanks Paul, We need a video every Week.

  • @hotflashfoto
    @hotflashfoto Před rokem +1

    This is good information.
    I prefer to use Select/Case instead of ElseIf. It's a lot cleaner and easier to manage, in my opinion. But what you presented is spot on, so I'm not kickin' ya in the knees.

  • @mshanabar
    @mshanabar Před rokem +3

    Awesome 👏 Have been using VBA from couple of year now but this content is amazing

  • @fekrabusinesssolutions

    Aaah.. if I knew earlier that I can learn this in 6 mins... Thaaaaaaaaanks ❤

  • @m_marcamo
    @m_marcamo Před rokem +2

    Clear and awesome!
    Thanks, Master.

  • @wayneedmondson1065
    @wayneedmondson1065 Před rokem +1

    Great! Thanks Paul!!

  • @moisestatis5418
    @moisestatis5418 Před 9 měsíci

    great video, thanks.

  • @user-wf4vi3br8q
    @user-wf4vi3br8q Před rokem

    Полезное видео для новичков.

  • @pk2k2
    @pk2k2 Před rokem

    LOVE IT

  • @reng7777
    @reng7777 Před rokem +1

    You are a master mind in vba amigo!! I wish i had the same skill as yours!!

  • @alializadeh8195
    @alializadeh8195 Před rokem

    Thanks

  • @maciejolejnik6706
    @maciejolejnik6706 Před rokem +1

    Very usefull info. Thx!

  • @MikeP59DE
    @MikeP59DE Před rokem

    Superb explained. Thank you very much.

  • @leviatan61
    @leviatan61 Před 10 měsíci

    Thanks for the video, so just to confir, the option vbDefaultbutton 1 ...n can be use to declare a custom button displayed in the message box? for example I have a button from a message box coming up from an application, the options are "Run" and "Cancel". Defaltubutton 1 would be "Run"?

  • @ExcelMadeEasy444
    @ExcelMadeEasy444 Před rokem

    Nice Explained.

  • @DimebagDerekS
    @DimebagDerekS Před rokem

    Hello Paul, your videos have helped me tremendously. I have been having issues connecting to a PDF software that our company uses. Even though Kofax PowerPDF has a guide for VBA automation stuff online, I cannot seem to make it work. Do you have any video or website recommendations for connecting to applications? Their Technical Support team has been no help, and any attempts to make connections like the examples they show in the guide are not working. I figured a bright mind like yours might be able to point me in a good direction to figure this out.

  • @mohammedhashim7994
    @mohammedhashim7994 Před 6 měsíci

    hi , how can i disable or remove the msg box ?

  • @Nevir202
    @Nevir202 Před rokem

    1:05 Sooooo... The intellisense (or whatever it's called) bar you're referencing there, it never appears for me, meaning I always have to guess or else look up this stuff online, no idea how it got turned off, or how to turn it back on. Anybody know?

    • @Excelmacromastery
      @Excelmacromastery  Před rokem

      You may have an error in your code. Use debug and compile to find and remove all errors. It should work fine then.

    • @Nevir202
      @Nevir202 Před rokem

      @@Excelmacromastery I get no errors, and when I click compile, it executes without any warnings. *shrug*

  • @krishnamanjunatha6183
    @krishnamanjunatha6183 Před rokem +1

    need vba code for automatic popup & disappear after few seconds

  • @paolodimartino241
    @paolodimartino241 Před rokem

    ✔️ ρяσмσѕм