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

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

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

  • @LeilaGharani
    @LeilaGharani  6 หลายเดือนก่อน

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

  • @dinutintu
    @dinutintu 3 หลายเดือนก่อน +1

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

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

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

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

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

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

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

    • @LeilaGharani
      @LeilaGharani  6 ปีที่แล้ว

      Thank you Mike for your message :)

  • @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

  • @AussieClogWog1955
    @AussieClogWog1955 3 ปีที่แล้ว

    Always the best and clearest tutorials

  • @Dudu9199
    @Dudu9199 2 ปีที่แล้ว

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

  • @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....

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

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

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

    Excellent tutorial on msgbox. Thanks !!!

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

    good example clear and concise. Thank you

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      Glad you like it Claudio.

  • @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.

  • @abdullahalklbani7454
    @abdullahalklbani7454 2 ปีที่แล้ว +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

  • @GhostRider-mz1hl
    @GhostRider-mz1hl 3 ปีที่แล้ว

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

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

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

  • @soniamckay3674
    @soniamckay3674 2 ปีที่แล้ว

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

  • @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 :)

  • @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

  • @lamumessach
    @lamumessach 5 ปีที่แล้ว

    all your videos are very helpful. Thanks

    • @LeilaGharani
      @LeilaGharani  5 ปีที่แล้ว

      I'm really glad to hear that.

  • @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

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

    Leila you are just awesome!

  • @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.

  • @alhabib-tutorials6826
    @alhabib-tutorials6826 4 ปีที่แล้ว

    Thankyou mam very knowledgable topics..

  • @user-ve6mh2ux3f
    @user-ve6mh2ux3f 4 ปีที่แล้ว

    You explain very well. Thank you.

  • @elmerjuyo1498
    @elmerjuyo1498 3 ปีที่แล้ว

    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 :)

  • @jaiderickandrade6154
    @jaiderickandrade6154 2 ปีที่แล้ว

    Thank you!

  • @aussieraver7182
    @aussieraver7182 3 ปีที่แล้ว

    Very powerful.

  • @STATUSU-ve3ee
    @STATUSU-ve3ee 4 ปีที่แล้ว

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

  • @mehdihammadi6145
    @mehdihammadi6145 6 ปีที่แล้ว

    Thank you Leila for this short, but useful, tuto

    • @LeilaGharani
      @LeilaGharani  6 ปีที่แล้ว

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

    • @quintonmartin471
      @quintonmartin471 3 ปีที่แล้ว

      @@LeilaGharani wtf

  • @bradsteimel
    @bradsteimel 5 ปีที่แล้ว

    Love this tutorial! Great job, Leila!!

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

      Glad you like the video!

  • @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.

  • @AbdallaAwad
    @AbdallaAwad 4 ปีที่แล้ว

    I've learnt a lot from you, thanks

  • @kingsleyemeka2136
    @kingsleyemeka2136 4 ปีที่แล้ว

    Thanks Leila, I really found this helpful.

  • @anshuiway
    @anshuiway 6 ปีที่แล้ว

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

    • @LeilaGharani
      @LeilaGharani  6 ปีที่แล้ว

      Glad you like it Anubhav.

  • @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...

  • @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.

  • @Rubbernecker
    @Rubbernecker 5 ปีที่แล้ว

    Awesome video!

  • @sasavienne
    @sasavienne 5 ปีที่แล้ว

    Thanks a lot Leila.

  • @aneeshaneesh8814
    @aneeshaneesh8814 3 ปีที่แล้ว

    Man thanks

  • @coucouserieux1988
    @coucouserieux1988 4 ปีที่แล้ว

    Incredible!

  • @Siva-DigitalEnglishEducation
    @Siva-DigitalEnglishEducation 6 ปีที่แล้ว

    I will review those sections. Thank you Mam.

  • @44.7b.kaharaditya6
    @44.7b.kaharaditya6 6 ปีที่แล้ว

    Gr8 Vedio Very Informative knowledge , Thanks

    • @LeilaGharani
      @LeilaGharani  6 ปีที่แล้ว

      Thank you. Glad you like it Manoj!

  • @qiwei1891
    @qiwei1891 3 ปีที่แล้ว

    thanks Leila Gharani

  • @johnborg6005
    @johnborg6005 6 ปีที่แล้ว

    Thanks Leila, Very Interesting :)

    • @LeilaGharani
      @LeilaGharani  6 ปีที่แล้ว

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

  • @virtualtambayan9855
    @virtualtambayan9855 2 ปีที่แล้ว

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

  • @hosseinhosseinpoor4845
    @hosseinhosseinpoor4845 3 ปีที่แล้ว

    thanks thanks thanks

  • @vijaysahal4556
    @vijaysahal4556 5 ปีที่แล้ว

    its magic 👍

  • @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!!"

  • @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

  • @mechanichim
    @mechanichim 3 ปีที่แล้ว

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

  • @Millenial_Aries
    @Millenial_Aries 6 ปีที่แล้ว

    Thanks :)

  • @mabraty8837
    @mabraty8837 2 ปีที่แล้ว

    I want you to show as a practical.

  • @mukeshgupta4143
    @mukeshgupta4143 5 ปีที่แล้ว

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

    • @syrophenikan
      @syrophenikan 5 ปีที่แล้ว

      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.

  • @bhar2855
    @bhar2855 20 วันที่ผ่านมา

    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?

  • @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.

  • @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 2 ปีที่แล้ว +1

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

  • @manueldavidsernaramos1551
    @manueldavidsernaramos1551 2 ปีที่แล้ว

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

  • @user-gk9rg2cs6g
    @user-gk9rg2cs6g 8 หลายเดือนก่อน

    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?

  • @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 TH-cam too once we cover some of the basic VBA logic.

  • @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....

  • @isaiah6510
    @isaiah6510 2 ปีที่แล้ว

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

  • @ShaifShafiq
    @ShaifShafiq 3 ปีที่แล้ว

    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.

  • @aneeshaneesh8814
    @aneeshaneesh8814 3 ปีที่แล้ว

    Private text box 3

  • @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...

  • @costazurra
    @costazurra 3 ปีที่แล้ว

    Are you doing online courses?

    • @LeilaGharani
      @LeilaGharani  3 ปีที่แล้ว

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

  • @jbp8417
    @jbp8417 2 ปีที่แล้ว

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

  • @VatanakPen
    @VatanakPen 3 ปีที่แล้ว

    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?

  • @pollinatorkioplop5790
    @pollinatorkioplop5790 4 ปีที่แล้ว

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

  • @VinayKumar-ij4eu
    @VinayKumar-ij4eu 3 ปีที่แล้ว

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

  • @muhammed-yo1oe
    @muhammed-yo1oe 2 ปีที่แล้ว

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

  • @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 5 ปีที่แล้ว

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

  • @gotasdetecnologia
    @gotasdetecnologia 3 ปีที่แล้ว

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

  • @begumrashik6635
    @begumrashik6635 2 ปีที่แล้ว

    How to connect userform inside msgbox

  • @arielzabatecuizon5147
    @arielzabatecuizon5147 3 ปีที่แล้ว

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

  • @sanjaydeshmukh5539
    @sanjaydeshmukh5539 4 ปีที่แล้ว

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

  • @ashoksahu9546
    @ashoksahu9546 5 ปีที่แล้ว

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

  • @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.

  • @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...

  • @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

  • @ghostofstoploss
    @ghostofstoploss 5 ปีที่แล้ว

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

  • @pikachu5205
    @pikachu5205 3 ปีที่แล้ว

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

  • @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: th-cam.com/play/PLmHVyfmcRKyzmbDy6QoBuUDrU5D-jD-Se.html

    • @santhoshkumard3740
      @santhoshkumard3740 6 ปีที่แล้ว

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

  • @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.

  • @harmhummel
    @harmhummel 2 ปีที่แล้ว

    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

  • @georginagaytan7770
    @georginagaytan7770 2 ปีที่แล้ว

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

  • @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/

  • @sanketnarkhede2585
    @sanketnarkhede2585 3 ปีที่แล้ว

    How to open a file using msgbox vbYes ?

  • @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

  • @atakheli3608
    @atakheli3608 4 ปีที่แล้ว

    This isn’t shreck, wtf