How to use the Message Box in Excel VBA (syntax you'll need for msgbox)

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 137

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

    Grab the file I used in the video from here 👉 pages.xelplus.com/vba-message-box-file

  • @dinutintu
    @dinutintu 8 місяців тому +1

    Step by Step teaching is much more appreciated and it is very useful for us, Jesus bless you!

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

    You are an amazing instructor Leila ! Cant thank you enough for such great tutorials !!

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

    Everything you do looks so easy, thank's för every video you post, amazing work.. 🙂

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

    Always the best and clearest tutorials

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

    This video is awesome, all your videos are on point Leila.
    I managed to learn and create practical simple questionaire responses because I genuinely understood what you taught

  • @excelisfun
    @excelisfun 6 років тому +2

    Thanks for the message about Message Box in VBA!!!

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Thank you Mike for your message :)

  • @marine_accountant3171
    @marine_accountant3171 6 років тому +1

    Thank you for producing such great videos! I really like the organization, information, and all the details you cover in all your videos! Hope you have a great day!

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Thank you Russell for your very nice comment and support.

  • @1gopalakrishnarao
    @1gopalakrishnarao 6 років тому +1

    Thanks to my brilliant & Beautiful VBA teacher, very informative, very useful, waiting eagerly for the next topics.

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Thank you very much Gopala. I'm happy to hear you like the VBA series....

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

    Excellent tutorial on msgbox. Thanks !!!

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

    Thank you so much, you saved me here. As we usually say here in Brazil: Muitíssimo obrigado!

  • @GhostRider-mz1hl
    @GhostRider-mz1hl 3 роки тому

    Thank you for passing on you're knowledge, it worked

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

    Thank you, for the excellent instructions, very clear and concise. 👌

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

    good example clear and concise. Thank you

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

    all your videos are very helpful. Thanks

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

    thank you Leila :) U R my favorite teacher :)

  • @สิดทิพอนก่อส้าง

    You explain very well. Thank you.

  • @AbdulRahman-hd6ju
    @AbdulRahman-hd6ju 6 років тому +1

    i found that your tutorial always amazingly useful .. thank you very much ..

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Thank you Abdul. I'm glad you like them.

  • @garyallan69
    @garyallan69 6 років тому

    Thank you for your video. Message boxes are very easy so wasn't going to watch it. Thankfully I did as I didn't know you could add certain types together or access the function like you did. Just shows you that you can always learn new things

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Hi Gary - I'm glad you found something new :)

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

    ممنون لیلا جون

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

    Thanks a lot for this msgbox ..I got some new knowledge
    I need something more if you can ^^
    How to show Notification message in Tray excel vba
    I need to see your method as an expert moreover, as I know you a great person with helpful ideas and explantions

  • @jahmarticeson2177
    @jahmarticeson2177 6 років тому +3

    Leila you are just awesome!

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

    Thank and i love you Leila Gharani im learning a lot !!!! Muah!!

  • @MySpreadsheetLab
    @MySpreadsheetLab 6 років тому

    Thanks for the video Leila! VBA is amazing and msgbox is so useful !

    • @LeilaGharani
      @LeilaGharani  6 років тому

      You're very welcome Kevin. Agree on both points :)

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

    Nice and very informative video..

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

      Hi i have a question can I create msg box while saving any spreadsheet because I use excel on daily basis in my job and huge data so if I set some control check so that i can minimize the error

  • @mehdihammadi6145
    @mehdihammadi6145 6 років тому

    Thank you Leila for this short, but useful, tuto

  • @AzeemKhan-si3gt
    @AzeemKhan-si3gt 3 роки тому

    Thank you very much for your teachings for your big fan your youtube subscriber and I had purchased udemy of Microsoft excel vba course 6 months back and I had learned so much from your course I request to you madam please if you know about Tally definition language please make the course on it

  • @kadiraweke4476
    @kadiraweke4476 4 місяці тому

    Thank you Sis

  • @onioni6121
    @onioni6121 6 років тому

    It's an amazing presentation....
    Very useful......
    I love you very much.....
    Thanks.....💗💗💗💗

    • @LeilaGharani
      @LeilaGharani  6 років тому +1

      Glad you like it :)

    • @onioni6121
      @onioni6121 6 років тому

      Leila Gharani
      Your profile picture is so heart touchy......and your presentation is very usefully and I am very happy...

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

    Love this tutorial! Great job, Leila!!

  • @alhabib-tutorials6826
    @alhabib-tutorials6826 4 роки тому

    Thankyou mam very knowledgable topics..

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

    I've learnt a lot from you, thanks

  • @kingimad6243
    @kingimad6243 6 років тому

    Thank you Leila for this tuto........merci beaucoup pour votre aide ;)

    • @LeilaGharani
      @LeilaGharani  6 років тому

      You're very welcome. Thank you for your support.

  • @anshuiway
    @anshuiway 6 років тому

    Very nice video It's very helpful for me to use vba in my Excel works

  • @Rubbernecker
    @Rubbernecker 6 років тому

    Awesome video!

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

    Thanks Leila, I really found this helpful.

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

    Thank you!

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

    Thanks a lot Leila.

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

    Very powerful.

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

    Incredible!

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

    Hi Leila. Question, I've got a scenario I'm wondering if it is doable with Message Boxes. Is it possible to have a message box pop up as an event procedure say maybe upon opening a workbook and display only cells that have values in a given range as well as values of an adjacent column? So for example, if I want a message box to show only those cells that have values from Column I(Eye not L) and then the corresponding values in column C, could a message box do that as a vertical listing? So something like:
    John Smith - 100
    Nancy Smith - 50
    Paul Smith - 75
    I'm not familiar with the limitations of Message Boxes, but is it possible to do something like that?

  • @STATUSU-ve3ee
    @STATUSU-ve3ee 4 роки тому

    Thank you very much miss
    Please learning vba msgbox in add photos

  • @44.7b.kaharaditya6
    @44.7b.kaharaditya6 6 років тому

    Gr8 Vedio Very Informative knowledge , Thanks

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Thank you. Glad you like it Manoj!

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

    Thank you for helpful video.
    Is there a way to make the message box fancy?

  • @aya-r9l5n
    @aya-r9l5n 4 місяці тому

    what if i want to allow the user to pick which cell the formula in the macro will be based on?

  • @mukeshgupta4143
    @mukeshgupta4143 6 років тому

    Awesome way to describe Msgbox Leila. Please suggest how we give the background color in msgbox.

    • @syrophenikan
      @syrophenikan 6 років тому

      The MsgBox object has limited customization features. If you need something more sophisticated (i.e. logos, font controls, backgrounds, etc...), you need to use UserForms.

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

    I was wondering if there was a way to refill the table after you clear it with the message box. I want to be able to change my chart and if I need to restart, I can hit the clear button and then it will clear and then start from my original table. Is this possible?

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

    which is the tutorial for the excel events function you mentioned?

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

    Thanks! Your lessons are awesome. However just a suggestion. You should use some bigger screen for display. Kind of smart board. As the visibility is quite less in the current system.

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

    its magic 👍

  • @johnborg6005
    @johnborg6005 6 років тому

    Thanks Leila, Very Interesting :)

    • @LeilaGharani
      @LeilaGharani  6 років тому

      You're very welcome John - VBA can be fun too :)

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

    Your videos are really helpful...can u show me how if number multiple 10(10,20,30....) occur show available...... Plz it's urgent

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

    Man thanks

  • @muhammed-yo1oe
    @muhammed-yo1oe 2 роки тому

    thanks .. How can I put intend to cods' line like yours?!?

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

    Thank you. What is the best way to provide the user with multiple lines of information when a button is clicked? Message boxes are great but requires code to insert lines. Is it better to use a text box on a user form? Thank you.

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

    Great video,is there a way to make the msgbox timed?

  • @Siva-DigitalEnglishEducation
    @Siva-DigitalEnglishEducation 6 років тому

    I will review those sections. Thank you Mam.

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

    how can I make an excel spreadsheet give an "expired date" message when I turn on my computer? without opening excel?

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

    Is it possible to put pop up if value exceed certain number?

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

    Is there an option to record it instead of manually typing the codes? Thanks. Appreciate your tutorials

  • @VinayKumar-ij4eu
    @VinayKumar-ij4eu 4 роки тому

    Hi Leila.. What if we want to display Emp name with Top 3 bids.. What will be the coding then?

  • @Nathan-kw2hs
    @Nathan-kw2hs 3 роки тому

    Anything i can do about that spinning wheel you get when the cursor is moved off the message?
    I literally had someone wait for it to go away before trying to click 'ok' in the prompt...

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

    Hi,, thanks for the video but How can we use this welcome msg whenever we open the excel? (as I tried but it didn't work) (I have already enabled and saved excel as Macro Enabled Worksheet. Also if I want the user to fill a specific cell and he left it blank, is there a way to stop him from closing/saving the file (with an error msgbox)?
    Thanks in advance for your support.

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

    can you show me how to set up the message box in VBA with expiry date and there are 2 tabs different which are sitting in one file?

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

    Is there a way we can change the fontsize inside the msgbox?

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

    Good One!!!

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

      in Portuguese we usually say in the young figures of speech "ball show" or "show de bola!!"

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

    Your videos are awesome. Question for you, how can you change the font/color of the test in the MSGBOX? Is that doable? Thanks

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

      You can't do that using the standard msgbox. You can do it by creating a userform.

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

    Can you help me, for different kind of price rating method in Excel (like FIFO , etc)

  • @ismailismaili0071
    @ismailismaili0071 6 років тому

    Thank you Ms. Leila the video is great but i really want your advice how can i understand VBAs

    • @LeilaGharani
      @LeilaGharani  6 років тому

      You're welcome Ismail - it's best to start from the beginning - you can watch the playlist from the start to see if it's something for you - but to get an in-depth understanding I would suggest a book or a complete course....

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

    In 6:15 timestamp, Can anybody help me to know when we need to use BRACKETS and when we shouldn't?
    Your reply / Support will be appreciable.

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

    I donot want any sort buttons i.e. ok cancel just show message and keep on showing it until it exit sub then what to do

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

    thanks thanks thanks

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

    Are you doing online courses?

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

      Yes, you can check them out here: www.xelplus.com/courses/

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

    How to custom button name in msgbox like "start & Stop" instead of Yes & No?

  • @ashishmohan4707
    @ashishmohan4707 6 років тому

    hello leila thanx to share with these type of video bt i would like to say you that although ur content is very good all of us bt i request to u that pick the topic project wise and solve this from where we can learn more.olzz donot mind bt i need this type of video

    • @LeilaGharani
      @LeilaGharani  6 років тому +1

      Thanks Ashish for your comment. Yes - I will be adding in a few of the projects on UA-cam too once we cover some of the basic VBA logic.

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

    Can you write in another language? ie. Chinese, Korean, Japanese. Thank you!

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

    Hi, Just want to confirm do you have VBA videos for outlook automation?
    Please advise. Thanks

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

      Hi - in the full vba course I cover two methods to send automatic emails from Excel. One is a simple method that uses your default email and the 2nd is for Outlook. We generate different PDF files for different people and we automatically attach them to an Outlook email (taking the email addresses from the Excel file) - we cover this in the 3rd milestone of the course.

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

    i am getting expected # error on the same line of code ? for the = sign

  • @Millenial_Aries
    @Millenial_Aries 6 років тому

    Thanks :)

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

    thanks Leila Gharani

  • @rochm
    @rochm 6 років тому

    Thank you, unfortunately I cannot get a picture on top of the button, bring to front not working excel 2007

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Do you have windows? It should work. I've done this in much older versions of Excel as well...

    • @rochm
      @rochm 6 років тому

      Thank you for your reply, Yes I'm using the latest windows 10 version 1803. What file format is the little sun you're using? I was trying to use a small .jpg file

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

    hii liela madam me vijay frm jaipur "how I cn join ur excel vba complate course plz tell me bcoz I wnt to learn vba nd chart pivot dashboard

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

      That's great Vijay. You can check out my courses here: www.xelplus.com/courses/

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

    How can I create a message without expecting a response from the user

  • @Lu_Ca
    @Lu_Ca 6 років тому +1

    Super useful! Do you have any suggestion to create a dynamic message on cell selection. for example imgur.com/p7Zws0e so if I click on a cell with a date it will temporarely have a comment with the day of the week. (maybe ON_CHANGE?)

    • @LeilaGharani
      @LeilaGharani  6 років тому +1

      Thank you Luca - Yes SelectionChange procedure would be useful here. You might also find this article helpful: www.spreadsheet1.com/screentips--onaction.html

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

    How to open a file using msgbox vbYes ?

  • @ashoksahu9546
    @ashoksahu9546 6 років тому

    Mm. very very nice video,
    Mm. how to change text size or colour inside vba msg box

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

    I want you to show as a practical.

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

    How to connect userform inside msgbox

  • @Siva-DigitalEnglishEducation
    @Siva-DigitalEnglishEducation 6 років тому

    Hi Mam, this is Siva Kumar
    I got the access to videos from udemy. I started learning. May I know what is automation in excel/vba and how to do that. Can i have any sample videos for that. Thank you Mam.

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Hi Siva - automation in Excel is any procedure that's done automatically - for example in this video, when we click on the button and we get a message box asking us if we want to delete data and we click "yes" and it deletes - that's a mini automation. When you program an Excel tool with VBA, you can automate many different tasks. Inside the course in first milestone (section 9) we automate creating a Table of Contents for our files, in the 2nd milestone in section 14 we automate importing data from other files and creating csv files and so on...

  • @santhoshkumard3740
    @santhoshkumard3740 6 років тому

    Dear Ma'am i am biggner to learn about VBA please guide me from Basics to upper level

    • @LeilaGharani
      @LeilaGharani  6 років тому

      Hi Santhosh. I have a course that takes you from beginner to advanced here bit.ly/LeilaVBA. It's over 20 hours long. I also have a free playlist here, but start from the beginning of the list: ua-cam.com/play/PLmHVyfmcRKyzmbDy6QoBuUDrU5D-jD-Se.html

    • @santhoshkumard3740
      @santhoshkumard3740 6 років тому

      Let me check Ma'am.
      Thanks for your prompt Response.

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

    It looks cool but is so difficult to follow up,,,,, I´ll keep looking for tutorials ;(

  • @abdallah.kandiel
    @abdallah.kandiel 6 років тому +1

    I am losing my touch
    Greatungs ur highness
    Happy thursday

    • @LeilaGharani
      @LeilaGharani  6 років тому +1

      I'll be uploading VBA videos on Tuesdays for a bit for the VBA series and the usual Excel videos on Thursdays. So happy Thursday is still in place :) Thanks for dropping by on Tuesday too. See you in 2 days.

    • @abdallah.kandiel
      @abdallah.kandiel 6 років тому +1

      Leila Gharani can i reply now in case of
      😅😄😇

    • @oyekunbiadekunle2942
      @oyekunbiadekunle2942 6 років тому

      @@LeilaGharani bi ommmhnɓbk
      Ppppomhu bbjih go. Mnñbnnnbbyou jup

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

    Private text box 3

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

    This isn’t shreck, wtf