Create Userform in Excel VBA Macro in Detail

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

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

  • @karthikeyanalagu2180
    @karthikeyanalagu2180 6 หลายเดือนก่อน +2

    Thats Awesome. I have created an userform with this video for my daily business. My sincere gratitude to you

  • @annatjienankela4594
    @annatjienankela4594 6 หลายเดือนก่อน +3

    For those that got the 1004 error: there should be 1 entry in the first row below your headers. In all the columns you're planning to populate.

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

    this is amazing!! so concise, straightforward and complete for a person learning the Excel VBA Macro for the first time! keep up the good work!

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

    Sir, thank u very much for ur easily graspable way of teaching strategy.. much appreciated...

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

    Thank you Mr. Training by Himanshu
    I wrote it based on the questions in the comments.
    In order to record data; Headings should be entered in the first line, and records should be entered as if data were made in the second line.
    (Range("a1").End(xlDown).Offset(1, 0).Value = Range("a1").End(xlDown).Value + 1) ←this snippet persists the sequence number.

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

      You may try this
      Range("a1048576").End(xlup).offset(1,0).value.. with this method a single entry is not needed.

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

    Thank you very much. I do appreciate your patience and clear explanation. Keep up the good work

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

    Very clearly explained! Super informative and super helpful video! Thanks a lot for sharing!😊🙏

  • @BASITKHAN-hs3ij
    @BASITKHAN-hs3ij 3 ปีที่แล้ว

    Thanks alot sir i have created customer userform with help of your video 👍 for my project❤

  • @don8919-t2n
    @don8919-t2n 2 ปีที่แล้ว +3

    Thank you for the lesson, you, Sir, are so easy to follow makes this learning p;process fun....nicely done...

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

    thank God you exist

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

    Thanks for your tutorial very understand me and easy

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

    Thank you !
    I have made this form for my institute project.

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

    Thank you so much. I was trying to find a way to do this on TypeScript but it would not show drop-downs.

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

    Thank you for the lesson

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

    Hi Himanshu,
    it's a really simple and better way of starting the Userforms
    thanks for sharing your knowledge

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

    you r the best programer sir bahut acha samjhate hai or bhi thora isko acha banaye please ek fectory ka form kaise banaye please bataiye

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

    Thank you sir it is working , is Very usefull for me but Fist Entry is a manual type so this fact is telling Other Student

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

    You're the best... I follow all your steps.. it's work..

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

    Sheet1.Activate
    Range("a1").End(x1Down).Offset(1, 0).Value = Range("a1").End(x1Down).Value + 1
    Range("b1").End(x1Down).Offset(1, 0).Value = TextBox1.Value
    Range("c1").End(x1Down).Offset(1, 0).Value = TextBox2.Value
    Range("d1").End(x1Down).Offset(1, 0).Value = ComboBox1.Value
    If CheckBox1.Value = True Then
    Range("e1").End(x1Down).Offset(1, 0).Value = "Yes"
    Else
    Range("e1").End(x1Down).Offset(1, 0).Value = "No"
    End If
    Unload Me
    This code is not working dont know why

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

      There should be atleast 1 entry in that data. I mean below the Headings do one entry manually then only it will work.

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

      @@trainingbyhimanshu I entered 1 row entry. Still it did not work. The debug informs me of this error message "Range("a1").End(x1Down).Offset(1, 0).Value = Range("a1").End(x1Down).Value + 1" Application-defined or Object-defined error.

  • @PortalGroup-h1v
    @PortalGroup-h1v 5 หลายเดือนก่อน

    Thank you for for a lesson Mr.

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

    Really helpful. Thanks Himanshu!

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

    Very Useful, Thank you

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

    THANKS, A LOT
    HOW CAN FIND THE FORM WHEN WE CREATE A FORM IN EXCEL SHEET WHEN I CLOSE MY FORM AFTER CLOSED AND COME OPEN THE FILE THE FORM DO NOT SHOW ON THE SHEET

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

    By the way...
    Can I save one form entry to more than one row or to more than one sheet?

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

    plz introduce each tab menu tools in user form menu

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

    Thank you very much. This Video helps me a lot.

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

    Great tutorial. Thanks!

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

    I have a set of data from which I want to extract some specific data using Form. I mean to say whatever I search in the Form fields will get that only data. How to make that macro

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

    Unique explanation 👌 I have understood everystood you go by..Thanks

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

    Thanks buddy for creating this tutorial !!

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

    hi im using macbook Micorosoft excel ver. 16.66.1 i cant use userform or form option

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

    It's very nice and easy also thank you sir 😊

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

    Where can i find the video before this one..i want to know how did you start from the begining

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

      Go to my channel and check the playlist. You will find macro playlist.. go ahead and start learning.
      You may click on the link here as well
      th-cam.com/play/PLTapRnxwDnt2cIjpcOWi0WZStDheCm8Fc.html

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

      @@trainingbyhimanshu I can't find the video, that you showed , how you created Name, scholarship etc, and how you entered the first entry.

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

    this is a great beginner tutorial for creating forms

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

    Hi, can we add this vba into existing table? I mean a table that already has the data but i want to make it simpler for the next data entry. Thank you

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

    Diculpa los que estan de color verde el texto el contenido para colocar en el centro como se hace?

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

    Thank you so much!
    I get the following on "Range("A7").End(xlDown).Offset(1, 0).Value = Range("A7").End(xlDown).Offset(1, 0).Value + 1"
    Run-time error '1004'. Application-defined or operation-defined error.
    Do you know why?

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

      Probably a7 is the last cell where you have filled data.. cell reference give A1.

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

      @@trainingbyhimanshu
      Even Im getting the same problem
      I have written A1 still

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

      Did you find a solution to this

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

      Same problem.

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

      Guys let me make it clear that a developer first seen the code n then try to understand . So first see this video in detail it's an small miss over on your line where you have mentioned offset again after comparing the same line your code would be # = Range("A7").End(xlDown).value + 1 #
      Apply this after (=) equals
      Happy codeing 😊👍🏻

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

    How to save this worksheet

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

    HELLOOOOOO!!!!
    When I run it, It always says "run-time error '1004':
    Application-defined or object-defined error"
    then it highlights the codes under the submit button the "Range("A1").End(xlDown).Offset(1, 0).Value = Range("a1").End(xlDown).Value + 1" is there something Wrong???

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

      THE SAME HAPPEN TO ME! :/

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

      @@MissFiorella1 SAME ERROR - UNABLE TO FIX

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

      There should be one entry.. it's because there is no entry below the titles

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

      @@trainingbyhimanshu Hello Himanshu, thank you for teaching me. Please where have to be the "entry"? Please show me the full Code that I can run it. Thx

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

      @@trainingbyhimanshu Same it Doesn't work

  • @庄则栋-i2l
    @庄则栋-i2l 4 ปีที่แล้ว

    First of all I must say Very thank you. Its all working but how can i save file with recorded macros after save and close my all macros couldn’t work. Please say me that how can i use recorded macro after save the file

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

    how to give the condition in save button like " do you want to save the data?" and in my excel unload me is not working, when i put this command then whole panel will close.

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

    Once i paid $67, any extra or additional money that i have to pay for, like getting new templates or animations, or version upgrade... etc ???

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

    Himanshu, as I proceed and tried to run all the VBA formula it is showing debug to me with error "1004". What am I suppose to do to resolve this

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

    Excellent video sir.thank you very much sir

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

    Hi Himanshu,
    Thank you for explaining how to work with user form, I may need some help, this code works fine only if have data in row 2 or it is showing error can you details about this.
    Regards
    P V Ravi Kumar

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

    Thank you very much

  • @eng.a
    @eng.a 2 ปีที่แล้ว

    Sooooo useful thank you so much 👏🏻👏🏻

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

    Hi I am getting error in debugg at range (a1)......... I.e first line itself what to do. Mine are all text box

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

    is visual basic coding is difficult to learn

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

    Thank you for a very educative session Himanshu 🙏

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

    Hey sir,
    Thanx for all this tutorials
    I want coding for a "textbox in a userform" named as OUTPUT which provides combined data with separater like ", or / " of all the above "textboxes and combobox of same userform" and then by clicking on command button "DONE"....it will paste the output item in excel.
    Please sir provide a solution for it...

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

      SHAITAAN I have not got the question?? Explain it again..

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

      I Turn i have created a userform in which i used 4 textboxes nd 5 combobox... nd in d last i add a lable "output" with 5th Textbox...
      now in that last textbox i need all the data which is entered in the above text and combo boxes...
      and when i get that data in textbox I want to use a button to transfer the same data to worksheet selected range...

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

      SHAITAAN double click on userform.. in the command prompt type textbox5.value = the output..
      Create another command button and give a name like transfer.
      Double click on command button and type
      Range("a2").value = textbox5.value
      In place of A2 give your preferred cell reference..
      Hope it will help..if still facing problem mail the file to himanshu@iturninstitute.com..
      I will check..

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

      I Turn hey... i ll send u the file with all the details in 5 mins....thanx a lot for reply... :)

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

      I Turn mail sent on ur id... :)

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

    Excelente Sir please more examples

  • @faris-math
    @faris-math 3 ปีที่แล้ว +1

    Very good

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

    Thanks for this video

  • @BharathGowda-n4l
    @BharathGowda-n4l 4 หลายเดือนก่อน

    Thank You

  • @SubbuMatta-o4x
    @SubbuMatta-o4x ปีที่แล้ว

    nice video, but your audio is very very low...

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

    I am getting an error of (run-time error '424': object required). How to rid this error?

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

    Sir, How to run a userform in Windows 2007

  • @AA-de1rl
    @AA-de1rl 3 ปีที่แล้ว

    Hello sir
    I have an an issue in my college project which is due today
    Can I email you the file please ?

    • @AA-de1rl
      @AA-de1rl 3 ปีที่แล้ว

      If anyone can help me I would appreciate it very much

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

    Trying your method, I faced a challenge with the coding for textbox 1
    Can you review it for me pls
    But you did a great job

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

    Thank u 😉

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

    How to open userform inn just one click on command????

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

      One click or command?
      Click base I have told already in the video

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

    Im having error while copy and paste

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

    Sir whenever I make the userform there are always 1004 error occurred. Will you please tell me how to remove that error.

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

    First, Thanks to Himanshu for putting this together. This was the seed of the idea generation.
    Like most of the guys, I was also getting error while compiling this code :
    Range("a1").End(x1Down).Offset(1, 0).Value = Range("a1").End(x1Down).Value + 1
    >>> Run-time error '1004'. Application-defined or operation-defined error.

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

      Couldn’t get this to work either. Kept getting “subscript out of range” error

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

      I don’t know if VBA changed, but just put:
      set dblist = Sheet1
      iRow = Sheet1.Range(“A1048576”).End(xlUp).Row + 1
      DON’T do that Sheets(“Sheet1”) thing - it’ll give error code 9
      It blows my mind that it’s so hard to make use of this content in the real world. Altogether I’ve wasted like 3 hours on this incredibly banal task. Ridiculous. This nonsense is why I loathe writing in VBA and very much look forward to not having to touch it again in a few days. Good grief.

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

    compile error invalid outside procedure

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

    I am getting runtime error on ->Range("a1").End(x1Down).Offset(1, 0).Value = Range("a1").End(x1Down).Value + 1
    Run-time error '1004'. Application-defined or operation-defined error.

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

      Do atleast one entry in your data manually to avoid this error

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

      Facing the same error, and i did enter one entry manually

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

      Did you find any solution for this

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

      @@aditimachale6050 Watch some another video, he is skipping some steps

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

      @@utsavgoyal7454 okay thanks do you know any?

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

    please help me i have a serious issue with excel .my colleague excel always gets close by itself .then all the data is lost .....please email me the solution

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

      Tibhil Mathew kindly clarify whether its one particular excel file or all the excel file in his system?

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

      I Turn this happens only at certain times and certain excel will close after showing not responding screen

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

      That's an application problem.. reinstall ms office package

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

      I Turn i have already Done that.

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

      sometimes when the workbook is ope and we are using and it shows as not responding and get close by itself and that is an accounts pc and he has lots of entry which he has to redo everytime.very hard ..please help me .. this happens with excel only no other application in that pc have this issue .please help you...

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

    Submit button Not working, Run-time error '1004'

  • @ИванБогун-ь8н
    @ИванБогун-ь8н 2 ปีที่แล้ว

    I have error:
    Compile error:
    Variable not defined
    What shall I do?

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

    Bravo!

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

    Range("A1").End(xlDown).Offset(1, 0).Value = Range("A1").End(xlDown).Value + 1
    this line doesn't work out in mine. u know why?

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

      You need to do atleast one entry manually in your data to make it work.

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

      Same here and i did enter a data manually

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

    hero

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

    sir awaz bohat slow haay

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

    Berusaha untuk maksud walaupun nilai bing gua E

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

    Tx

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

    Code doesn’t work

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

    Runtime error 1004

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

    It's not working

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

    W video

  • @Vikashkumar-jz9jv
    @Vikashkumar-jz9jv 2 ปีที่แล้ว

    it does not work

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

    thoda tez bol lea kr

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

    You should more laud

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

    Thank u very much

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

    thank you