Excel VBA - Write a Simple Macro

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2018
  • Excel VBA - Write a Simple Macro
    Lecture By: Mr. Pavan Lalwani Tutorials Point India Private Limited
    Check out latest Excel VBA Online Training courses on : bit.ly/2Km2xpF
    Use coupon "TH-cam" to get FLAT 10% OFF at Checkout.
    Check out latest Ebooks : store.tutorialspoint.com/sear...
    Check out latest Courses : www.tutorialspoint.com/videot...
    www.tutorix.com/
    For more updates on courses and tips follow us on:
    Facebook: / tutorialspointindia
    Twitter: / tutorialspoint
    LinkedIn: / tutorialspoint

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

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

    Get Certified in Excel VBA:bit.ly/41fWeVP
    Use coupon "TH-cam12" to get ‘’FLAT 12%’’ OFF at Checkout.

  • @flyingfoxes.
    @flyingfoxes. 4 ปีที่แล้ว +21

    Hope you know that COLLEGES in the US are learning from your videos. Instead of our professors teaching us, we're directed to watch your videos and you're doing a SUPERB JOB. Hope they pay you well otherwise move here and get paid 100k plus lol

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

      Where are you located, I wish I could teach abroad VBA for Excel

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

    Excellent, I really appreciate your effort, Thanks A Ton Again :-)
    This is proper way of teaching, step by step mentioning minor things along the way and all in a short 5-6 min video
    Awesome presentation FIRST TIME I GET WORD BEST TUTORIAL .
    Very Unique way of teaching, You are Great Trainer Keep it up.

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

    It's good to learn new skills. Some people in the corporate world do well with these to simplify things. This is one way for people to climb the corporate ladder with Microsoft Office Excel. Especially Headquarters. Good to learn while unemployed

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

    Thank you very much Sir. Its fun to learn from you because you make complex topics comprehensible.

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

    A very clear introduction. Thank you

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

    Very good explanation. Thanks.

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

    You my friend are a gifted instructor. I watched numerous videos and got bored after 1 minute max, not your videos... Thanks and keep up the good work

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

    Excellent dear, I have learnt macro very easily 😍

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

    Simple tricks awesome trainer.

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

    verynice videos,easily understandable.Can you please explain this type of videos for catia,Nx interface.

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

    Awesome trainer. Enjoyable and beneficial course. Thank you.

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

    Excellent presentation.

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

    the best explanation about vba.

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

    I understood what I needed to in less than 5 minutes what I could not in 7 weeks of class.

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

    I have subbed your channel because you have the most education videos cause now I am a VBA nearly a master of it so thanks for these videos

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

      can you tell me which excel version they use like 2013 ,2016

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

    Useful Videos for the Beginners

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

    Good explanation, sir please provide more macro video

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

    He's best Excel teacher

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

    Can you help me out in preparing a code for removal of invalid characters for selected rows and columns in excel.
    If so that would be really grateful.

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

    Hello, this was very helpful. I need your assistance. I get data in a particular raw format on daily basis and I have to put that data in a particular format. How to write a macro to automate this procedure where in the data automatically gets updated in the required format.

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

      Use power query tool in excel

    • @user-fx4gr7ge3h
      @user-fx4gr7ge3h 7 หลายเดือนก่อน

      ​@@muralimohan3118where is the tool in excel

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

    Omgod.. thank you!

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

    VERY NICE, WELL UNDERSTANDING, but can the keyboard be in front of you, but not for the camera to capture. i.e.bit lower

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

    Thanks for information.

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

    I like how you're standing and pointing to the menu items. How would I write a VBA to ask for input and then print particular documents that's on the computer because of the input (eg 1 , then print docA, 2 = doc B, 3 = both ). Thanks.

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

    THANK YOU SIR...

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

    Thanks a lot mr

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

    sir u explanation way is very good and impressive

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

    hi sir good evening !
    sir i want to set a voice or speak " that is the sentence in msgbox " at the time of open the excel and close the excel
    please help me. asap
    thanking you

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

    very nice tutorial .

  • @LiveLifeFreeStyle-qx8cy
    @LiveLifeFreeStyle-qx8cy หลายเดือนก่อน

    Awesome sir👏👏👏👏👏👏

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

    tha k you sir you clear my doubt

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

    Compare sheet1 and sheet2 and show the result in sheet3, sheet4 and sheet5 which contains the data which are
    1. Common in both sheets
    2. Data in sheet1 but not in sheet 2
    3. Data in sheet2 not in sheet1

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

    Thanks a lot

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

      Sir, I am 10 year old and learning VBA from your channel. Please guide how to remane module.

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

    مبدع

  • @GG-fe7di
    @GG-fe7di 3 ปีที่แล้ว +5

    Sir How to write a macro .?
    This is the Q asked in a interview

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

    Awesome

  • @RaviTeja-qc4jt
    @RaviTeja-qc4jt 4 ปีที่แล้ว

    Super sir really appreciate

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

    Thank you

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

    you are savior

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

    Nice learning

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

    This is very good vedio

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

    Hi, I want to make and auto updating summary from my excel based invoice file containing around 320 sheets. Can it be done thro macro programming?

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

    Very Smart Exp.....n

  • @h.m.pargaonkar8636
    @h.m.pargaonkar8636 3 ปีที่แล้ว

    in my case it is not asking "which macro to run" ; directly running both macros

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

    Will you provide macro (VBA) full course training. If yes then please share your contact details.

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

    Hi Pawan,
    The way of your teaching that’s awesome. I like it
    Thank you so much uploading these videos.it help us to understand easily .

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

    Hello sir i want to learn complete vba & macros from you ri8 from scratch,can you tell me the procedure?? But i want online mode as i am on different state

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

    I want to write a macro such that my daily report values will save automatically in a different sheet with respect to date....Can you help me to do?

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

    Salam
    Very good

  • @rumanijain9305
    @rumanijain9305 9 หลายเดือนก่อน

    How to enable insert, view , and other tools in VBA in macbook , I don't have that option in my macbook the way you have insert in your ribbon

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

    My question is on MS Access. I have two tables with two separate forms. The first table based on the
    first table has a calculated text box. I want to show the textbox data
    to a field to another form. How to do it. Thanx and regards.

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

    Which excel version are you using?

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

    Can anyone help me to import all the text and other properties like colors and styles from php screen to excel..

  • @JV-xg5jk
    @JV-xg5jk 5 ปีที่แล้ว

    What is the purpose of having the message box? The previous macro about coloring cell is helpful.
    How does the msg box help??

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

      MsgBox is used when you want to display any messages, Like pop up.

    • @JV-xg5jk
      @JV-xg5jk 5 ปีที่แล้ว

      @@dhannu143143 Thanks!

  • @Srinit-oh2te
    @Srinit-oh2te 4 ปีที่แล้ว +1

    Hi i have one doubt in writing of macro for copy from excel and paste another application with multiple line item .

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

    Dear sir kindly assist me o merge xmls with vba

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

    Nice

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

    My Reference :
    1) Write in module
    Sub Name() .... End Sub
    2) Msg("Text")

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

    Sir I want to subscribe to your MS Excel and MS Word classes for my child in class 10th. Do you have any online course? Send me the link.

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

    Hi! I am facing an error while running this code. The error is - Compile error: Argument not optional. How to solve it?

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

      can you please write the code here ?

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

    cant open my Visual basic application tool bar even with developer being checked, please help me sir. Highly appreciate your excellent video

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

    Hello, If ever I will try to put a breakpoint in my macro code, Runtime error 1004 will occur, but If I will remove the breakpoint the macro runs okay

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

    Bro, how save this macro and share with some one to use it?

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

    These are good, no doubt..but I expected a bit more explanation on each part, Like, what exactly is Sub Procedure or the fundamentals concept of object oriented programming. What are those objects in VBA for excel, what is the property of an object? what is method? What exactly module is? Why should we write the code in module? Why not in sheets? In cell referencing you mentioned whenever writing a number don't give inverted comma, what does that mean? If I want to write a number as a string? What's the difference? Why should we put inverted comma? What is String? What's the difference between a string and a number? How to write a string? For a beginner before dive into the code, the explanation is mandatory. Without it he will just try to memorize the whole thing, do this to make it, do that to make that..but the logical sense,the deep understanding won't ever grow! He won't understand what he is actually writing for what, forgetting these things without clear concepts will make huge loophole in his/her learning curve. Man! You are teaching an excel guy how to code for the very first time, so definitely you shouldn't assume he/she has a coding background. First go through the fundamental concepts and then dive into code.

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

      Bhaai ye excel basic macro ka video hai. Programming ka 4 saal ka course nhi

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

      @@ArjitRaj haa wo to mujhe pata hain.. Basic macro hain.. To main jo jo cheeze bola wo kiya advance topic hain? Wo to completely basic hain.. Wo agar koi nahi samajhta hain to wo to age nahi baar payega... Memorize karne ka to faida nahi hain in reality...

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

    Good

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

    Thanks sir

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

    Good dear

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

    Hi, I am unable to change the name i.e B_Write_A_Macro under Properties. Can you please assist?

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

      You can just double click on the module, and change the name

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

    Hi Sir, I am getting the Compile error subject or function not defined ,can u plz help

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

    How anyone can know that msgbox needs to write in shirt form why nit messagebox?

  • @maheshkumar-mp9vb
    @maheshkumar-mp9vb ปีที่แล้ว

    can i create tying software in excel

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

    Greetings,
    I urgently need your help with the code for the option/radio button on userform to enter value from textbox into the worksheet.
    I am working on an a fund accounting worksheet. I want to be able enter an amount in a textbox and then make a selection on the option button, the amount should be recorded in specific column under 4 headings. I have 4 funds, so for example I record 2000$ in the textbox and select F1 on the option button, the 2000$ should be recorded under F1.
    Thank you

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

    Yo thanks

  • @sukhpreetkaur-eu7lq
    @sukhpreetkaur-eu7lq ปีที่แล้ว

    If I try to find the coding of someone’s protected macro. Will it give a trigger to the author that someone tried to know the coding of the macro

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

    Good evening Sir,
    How to get datas from another database in data form

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

    Hi
    I am into accounts MIS.
    Will it be helpful for me?

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

    How to add macro for excel in ms teams?

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

    Sir, I need VBA coding for
    Multiple images insert at once and with title.
    Pls.. help us

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

    In VBA project window, microsoft exel object and sheet names are not visible. Can't able to run macros. Any solutions

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

    How to write a vba code in wps office spreadsheets

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

    Sir i want to convert excel macros into google sheets please help me with this

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

    how to insert a linke break in the vba in excel

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

    Hi, can you help with freelancing, I need assistance for a small project

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

    What to do whn click on the visual basic and code did not come

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

    This is genius of you to make the like button zero

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

    Sir isey open kaisey kartey hai mere wale excel mai developer lika hua ni a rha hai

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

    While writing msgbox 100 why did you put 100 in double quote??

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

      He Didn't put double quotes for 100. in Excel or Macros if we write text we need to put it in double quotes, for numbers and cell reference no need to write in double quotes.

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

      naresh koppurotu thanks

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

    Hi still I'm getting run time error and it says u have purchase

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

    Can we practice with normal excel file?

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

      Save file as macro enabled..
      uniqueexcelvba.blogspot.com/p/beginner-guide.html

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

    Sub OpenDartFolder()
    Dim folderPath As String
    folderPath = "C:\Users\kunko\OneDrive\Desktop\Dart"
    Shell folderPath, vbNormalFocus
    End Sub
    i have written this VBA Code and assingned macro button to it but when i click or run the code an error occurs showing invalid procedure call or argument. what might be the problem please do help me it will be very greatefull of you.
    this code is used to excess folder present at any location in your pc using excel file and macro so please do help me

  • @manod7100
    @manod7100 15 วันที่ผ่านมา

    Hi sir

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

    Hi.. May i have your email?? I have problem on my excel project need your help

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

    2. Write a VBA Code that will loop through the below data and calculate the unit price of all the listed products!
    unit price from no of sold and amount of sold

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

    How to Write Code in Macro
    =====================
    1)Developer ==> Visual Basic ==>
    2)To Create New Module ==> Insert ==> Module
    3)In Project Explorer you can see your Module
    4)Then In Properties window you you can add Module Name
    5) Code View Pnale Type the Following Code
    Sub first_Macro()
    Msgbox "Tutorialspoint"
    End Sub
    6)In Toolbar Run Dialogue box will show
    7)Finally you can view the output in y Excel

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

    Maconha Brazil?

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

    I don't developer tab ,in my excel what to do

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

      If the Developer Tab not available in Excel Menu, right click on Menu bar and choose 'Customize the Ribbon' option and select 'Developer Tab from the list.
      uniqueexcelvba.blogspot.com/p/beginner-guide.html

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

    Hi sir vba pe click karne ke baad blank page aa raha hai kya karu.
    Please help

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

    Excel VBA Project asking for password

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

    What is the macro..
    You are not having any intro?