VBA User Form: Add, Update, Delete and Save

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this video, we create an Excel data entry form with UserForm VBA.
    You can add, update, delete and save the data.

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

  • @Me_ThatsWho
    @Me_ThatsWho 3 หลายเดือนก่อน +4

    I have to admit, this is the BEST video of its kind (believe me, I've viewed a ton of them). I learned a ton in a very short period. The solution is quite polished and professional. It almost makes me want to skip using my database (almost!).
    Btw, a tiny suggestion- perhaps a better electronic voice. Otherwise, perfect tutorial.

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

      Wow, thank you!

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

    Very professionally made and useful.
    Some suggestions: name the command buttons with their action instead than with a number. When going through the code is much easier to navigate.

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

    Hi. Thanks for the video. It's very helpful. I have a doubt. I'm using the same in AutoCAD VBA where I'm not using excel to save data. Instead saving it to array variable. I pop up autocad using command button and some operations are performed then userform is showed again. The data is not appearing in list box but is available in the stored variable. How to show the existing data in the list box. please help.

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

    Thanks for the video, hopefully you can help me have a question I also use an ID number linked to the cell this is automatically generated for every new entry on the first sheet . When the ID is processed it is also automatically moved to the second sheet of the (closed ID) the problem is when it is moved I get the same ID number again on my first sheet do you know how I can keep this number unique? Do you have a video of this how I can keep it unique? Thanks in advance

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

    EXCELLENT,,,,,,,,,,,,,,,, YOU ARE THE SUPERB MENTOR.......... I LEART ALOT AND YOU HAVE AMAZING STYLE OF TEACHING

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

      Thanks for the comment and for watching! 😊

  • @IzzyUsi411
    @IzzyUsi411 2 วันที่ผ่านมา

    Can it be saved as "macro enabled"'? if not, please clarify

  • @neelslombard4233
    @neelslombard4233 6 หลายเดือนก่อน +1

    I have a second question, how do I add unique ID codes? instead of the normal 1,2,3,4.... I would like to add a ID that reads AP-1, AP-2 and so on. What would I have to add or change in the existing code?

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

    Wonderful video! I saw that I did it the way you did, and it turned out the same. Thank you so much Hay Kel!

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

      Thank you

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

    This actually works great. Very professionally done. I was able to relabel it and add more columns to match my spreadsheet at work and was successful.

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

      Thanks for the comment and for watching! 😊

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

    Hi! just saw your vid and it helped me a lot. I just have one problem. there are duplicate entries in my form and when I tried to update the latest duplicate entry, the previous entry was the one updating. I don't know the code to fix it.

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

    Can you get the option selected on an option button added when double clicking the list box line that you want displayed?

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

    i have a Problem if i press on Save it will save in ecxcel but on the first raw, then wenn i but new data in vba and press on Save it will delet the old won and replaced it with the new won? it will notput automatikli in the new raw now it just replaced the old with the new won. What can i do to chnage this?

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

    Great video on coding in VBA. I just have one slight problem and I'm not sure where I went wrong, as I copied each step as the video went along. My workbook is setup slightly different as to what is used in the video, but same principal. My issue is when I add my data to the spreadsheet, it starts at A3 with ID code 2. I tried completing row 2 manually by adding ID 1 in A2 and filling in the rest of row 2. But as soon as I add new data through the Userform, it skips one row(A4) and enters all the data in A5 with ID code 4. I ran through my coding several times to make sure everything matches what the tutorial explained, but yet it keeps skipping that one line. I tried doing a update on the skipped line, but as soon as new data is loaded it skips the last row. Please help, I do not want to do this all over again.

  • @WeltonMadureira
    @WeltonMadureira 4 หลายเดือนก่อน +1

    Can I make a dynamic search at the same VBA User form??

  • @faizalmarjudi7144
    @faizalmarjudi7144 3 หลายเดือนก่อน

    Hi there, great video and easy to follow. I have a question, how can we add data from the top row, meaning the latest data entry will be in the 1st row while the old data will go down. I would really appreciate if you can assist me. Thanks

    • @franklinvarron5919
      @franklinvarron5919 21 วันที่ผ่านมา

      Same question here. Hoping that there would be an answer

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

    Great work. I was waiting for such a video like this.thanks a lot

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

      Most welcome 😊

  • @non-financialasset4673
    @non-financialasset4673 หลายเดือนก่อน

    can you solve this
    - have two table in same worksheet
    i need add data for that two tables by using same Excel.VBA Form

  • @khingjo44
    @khingjo44 24 วันที่ผ่านมา

    can you do a tutorial about 3 data sheets and Listbox transfer data with one userform

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

    thank you so much really great.....
    if i want the latest ID added always on top , how can i do that?

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

    I Tried to add another ComboBox at this User Form but I can't make it work, can you help me?

  • @Grendel-mq2ji
    @Grendel-mq2ji 4 หลายเดือนก่อน

    i did exactly in the video but error in delete function, "delete method of range class failed"
    ??????

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

    HI get this error in yellow when vba tested sh.Range("A" & selected_row).EntireRow.Delete please advise

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

    Why i can only update one data (new data inputed in all the textbox)?

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

    this video help me a lot so thank u my friend , go ahead

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

      Thanks for the comment and for watching! 😊

  • @samnangsuonsokunth8719
    @samnangsuonsokunth8719 6 หลายเดือนก่อน +1

    sir if delete the row the serial number auto update or not sir

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

      Yes of course

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

      @@hay_kel thank you sir

    • @BarryPiper-pq1fy
      @BarryPiper-pq1fy 2 หลายเดือนก่อน

      Help! I’ve reached the end and everything works except the active x command button on sheet 1, any help is appreciated 😊

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

    man am try to Add serch box for this but not work man.. can u making tutorial for next video..?

  • @bharathtechie1165
    @bharathtechie1165 19 วันที่ผ่านมา +1

    Mind blowing

    • @hay_kel
      @hay_kel  18 วันที่ผ่านมา

      Thank you

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

    I have an execution error -2147352571 with ( .ColumnWidths = "30,40,100,110,70,90" ), solution ?

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

      Same here

  • @harmanpreetkaur8384
    @harmanpreetkaur8384 18 วันที่ผ่านมา

    Id no. Not shown in our textbox 4

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

    Can i get this file for practice 😊

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

    Excellent Job

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

    thanxs bro...

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

    very good

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

      Thank you! Cheers!

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

    احتاج الملف تحميل

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

    Looks ai generated but still wonderfull

  • @xianxavieryt1222
    @xianxavieryt1222 2 หลายเดือนก่อน +1

    Great job on this tutorial. You earn a like and a sub.
    BTW i am having trouble on dates using .List. Ex. Me.txtDatePaid.Value = Me.lstDatabase.List(db_Value, 4)
    When i dbl click data on listbox, a saved value on db ex. 8/6/2024 will display on the textbox as 45565 something