Adding Data to an Excel Worksheet using TextBox Controls on a VBA UserForm

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

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

  • @user-wf3hd3jh2q
    @user-wf3hd3jh2q ปีที่แล้ว +1

    Wow!!! I watch your channel for not excel things and it's fun to see you also created excel videos

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

    I've viewed several tutorials on simple userform and I find yours as the one I feel most comfortable with! Thanks for this!

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

      I guess Im asking the wrong place but does anyone know a tool to log back into an instagram account??
      I stupidly lost the account password. I appreciate any help you can give me!

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

      @Anderson Charles instablaster =)

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

      @Blake Matthew thanks so much for your reply. I found the site on google and Im in the hacking process now.
      Takes quite some time so I will reply here later with my results.

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

      @Blake Matthew it worked and I actually got access to my account again. Im so happy!
      Thank you so much, you saved my ass !

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

      @Anderson Charles Glad I could help :)

  • @yohannesalmaw1414
    @yohannesalmaw1414 7 ปีที่แล้ว

    Thank you so much Dr. Your explanation is so short,precise and simple to understand. I wish I would spend my money to such professors in school to learn coding and developing applications of different types.

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      You're welcome, thanks for watching -

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

    Nicely presented and explained. It is clear

  • @kimeeshareedwalker2602
    @kimeeshareedwalker2602 8 ปีที่แล้ว

    Excel has many features that seem complicated but once you input the configurations its very useful at the end.

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

    Good job Dr.Todd. Thanks for sharing.

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

    Short and simple. thanks!

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

    !Wow! easy to follow, and at the same time VERY helpfull codes. Thanks for devoting your time to share with the world.

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

      You're welcome -

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

    Great video! Helped me out a lot with what I was trying to do with my UserForm.

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

    very simple and usefull thanks a lot

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

    super thanks for this video! helped me fix my problem in vba

  • @Exceltrainingvideos
    @Exceltrainingvideos 7 ปีที่แล้ว +9

    Excellent!

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

      Thank you and thanks for watching -

    • @vishaldeokar8403
      @vishaldeokar8403 7 ปีที่แล้ว

      Can we create cash denomination control system by using Excel VBA for cash counter to record transactions in cash

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

    Very helpful. Thank you.

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

    This is the best VBA tutorial! TBH, i've been trying to learn this VBA for over a week now and some tutorials are just full of nonsense talking which makes it more difficult. But i have a concern though, hopefully someone can resolve this. I followed everything exactly on the video, but i want my textbox1,2,and 3 to enter data on the columns i need them to be on, not following the Active Cell like used in the video. Any suggestions?

  • @hameedksn6116
    @hameedksn6116 7 ปีที่แล้ว

    Really you are always Brilliant and estimable good luck Dr. Todd. I feel lucky and pleased to watch your informative videos, great thanks

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      Thank you so much and thanks for watching -

  • @faiqmahmudzade3470
    @faiqmahmudzade3470 7 ปีที่แล้ว

    thanks Mr.Todd and Mr Dinesh Kumar

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

    Thankyou so much for taking the time to share this Information , it worked great for what I needed .

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

      You're welcome!

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

    Great video

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

    Thank you very much, sir.

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

    Thank you. how do I put the combo box value directly a specific cell directly? without no offset

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

      Using Range("the number of the cell").value = textbox#.Value

  • @Guibao-Fam
    @Guibao-Fam 4 ปีที่แล้ว +1

    Hi Doc, I am working on this data entry worksheet and this video definitely helped me. However, I want to know how to assign the data to a specific cell in the excel worksheet instead of having it pop out to an active cell. This eases the user from having to point to a specific cell before they start loading the data. Thank you

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

      Use VBA code to navigate to the correct active cell. I usually name the upper left cell in the data table. I select that cell first with code.
      (cell name.select). From there, using VBA, I do an “end down” move to get to the bottom row in the table and make that the active cell. From there you do the offsets.

  • @ForeverDauntless
    @ForeverDauntless 7 ปีที่แล้ว

    Man this helped tremendously and did exactly what I wanted and nothing more, fantastic job on the explanations of what is happening with each line of code. I do have one question though, is there a way to have it select the next empty cell/row when the UserForm intializes? This is in case you had click somewhere else in the sheet before starting your userform, because as is, it just enters the info wherever the cursor was placed before initialization.

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

    thank you for these lessons. it's so interesting, but I have a question. I want to know how did you manage to always have the cell (1,1) active at the start.

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

    Realy Awsome Teaching

  • @maicasantolorin9646
    @maicasantolorin9646 7 ปีที่แล้ว

    thank god for you. i already fixed my program

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      I'm glad you found the video useful - thanks for watching -

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

    Very clear and instructive tutorial dr. thanks! It helps me a lot! Cheers! ;)

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

    How to add a counter for each register? In other colum

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

    Thanks you for the work you have done here. After entering your prescribed code the UserFprm is great, however it dors not transfer to the spreadsheet. I get an error code "Run-Time error '424':. I do not see how the code knows where the first cell on the spreadsheet. I am sure I have missed something but not sure what it is. Thanks for Your help. Kevin

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

    Thank you very much sir.
    Could you please help me out in writing code if the destination is an excel table which can expand as the new data entered.
    Thank you once again.

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

    Thanks for this video...
    with the help of this video i am able to create userform and also able to add data to my sheet.. But in the last when i am closing my file.. not able to open it again, will you plz help me to save that file where i can work again on the same sheet for updating my sheet

  • @moatazzaied3283
    @moatazzaied3283 7 ปีที่แล้ว

    dear Todd grand that was very helpful and thanks a lot for your great effort
    but i faced an issue using the UserForm
    when it add data from the user form to a sheets (numbers) it appears as texts and i manually change them to numbers so if there an equation it doesn't reflect automatically so do you have a solution for that

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

    Thank you so much for the tutorial. excellent..!

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

      You're welcome -

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

    thank you

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

    Thanks.

  • @saidlozi
    @saidlozi 7 ปีที่แล้ว

    thanks lot, short and easy

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      You're welcome, thanks for watching -

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

    This was very helpful! Thank you so much! :)

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

      You're welcome!

  • @aswinprathip804
    @aswinprathip804 7 ปีที่แล้ว

    very nice and use full to me

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      Thank you -

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

    I have a caution when I click on my form: "Object Required" What does this mean?

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

      after completing the formula, type in the active cell formula again and dont copy paste. that helped with mine. for some reason.

  • @ErdmanA88
    @ErdmanA88 7 ปีที่แล้ว

    Is there a way to create a userform with questions and info for/from
    clients that can somehow be filled into their specific spots on a
    worksheet that is set up like a printable document and not just data
    lined up in columns and rows?

  • @franceslai92
    @franceslai92 8 ปีที่แล้ว

    want to build an online form but the online form builders doesn't achieve my needs so made my own from VBA userform.
    is it possible to publish the VBA userform into website without losing functionality?

  • @JosephArouna
    @JosephArouna 7 ปีที่แล้ว

    Hello ! I have an Excel form with two text boxes. I would like to display the result in figures in the first text area of ​​the userform and the same result but in letters in the second text area of ​​the userform. I have the Excel function of translating numbers into letters. But I do not know how to take me so that a click of a command button can simultaneously display this result in the text areas of the userform. Thank you for helping me !

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

    traightforward, thank you Todd

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

      You're welcome -

  • @JosephArouna
    @JosephArouna 7 ปีที่แล้ว

    Hello ! I have an Excel form with two text boxes. The first must display the result in figures of an operation; The second must display this same but in letters. I have the function of translating numbers into letters. But I do not know how to take me so that a click of a control button can simultaneously operate the operations. Thank you for helping me!

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

    I have a quick queation: let's say the user after entering the date he clicked on a cell outside this range, and saved the sheet. The next time the user inputs more data it will be saved outside this range. What I am trying to say is: how to automatically keep the focus on the range of those 3 columns even if the user mistakingly click on a cell in row E and saves?
    Thanks

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

    Could you please explain why setting the default value = true enables the user to click the enter button instead of clicking " enter " ?

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

    Hi Dr. Todd, my second input does not go to the next row. It overwrites the first row. Any suggestions?

  • @uditkapoor2611
    @uditkapoor2611 7 ปีที่แล้ว

    Hi. I have a question. Let's say if we have 80 data in the ID column. And we want to stop the form at the 80th record and it must also display a message box saying something like "You have reached the maximum limit or the last row" and the user must not be able to add any other record to it. So, what is going to the code for that? Thanks a lot. =)

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

    How would you add additional data to the same name ? Example List of golfers have new scores each week , you want to add John's new score while keeping his previous scores in tact .

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

    Using this user form and starting in the first cell. How do I stop it from going to that cell every time I use the User Form.

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

    Hi Todd, can you help me with one thing I am stuck with, tried many ways but not working. I am writing a userform with a submit button to load data on userform to a spreedsheet. problem is i want excel to choose the next available record number( or row) from the spreedsheet. I tried vlookup, rowX, . please help me out?

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

    How the executable file created of vba user form and excel sheet ?

  • @maximillian4034
    @maximillian4034 7 ปีที่แล้ว

    The ActiveCell code is unstable, if the cell highlighted (ActiveCell) before opening the form is cell A2, the data will be entered int the right column, else say the highlighted cell (Active Sheet) before opening the form is D7, the data will paste in D7, D8, D9...
    I would love a fix to this... If it means defining a range or setting an absolute string...
    Thanks in advance.

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

    I have everything working like you showed me to do, But It will not start at the next available row when I enter Data in the form, I have to manually click on the empty row and start my data entry and then it will line up correctly, What di I do wrong?

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

    How does that form become a macro? I do all the steps but it isn't on the macro list

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

    How did you get the inputted data to go in the correct cells? Say for example, I want the first first name to go in cell H5.

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

      Tony Worrell you have to select cell H5, it will be assigned as (0,0) from there the formula makes sure the values are entered in sequence.

  • @haneefabid9829
    @haneefabid9829 7 ปีที่แล้ว

    Hello Sir, Its Amazing and very useful. I tried and its working perfectly. but when i using this method for number, my cell storing , showing number but cell is text formatted. so that cell number not identifying vlookup. please advise how it save as number

  • @MFchocolates24
    @MFchocolates24 7 ปีที่แล้ว

    Hi, I would like to thank you for making this tutorial it helps me build my encoding worksheet more convenient. I would like to ask you on something maybe I missed. I have done everything what you have instructed and the program works but its showing the data in different cell on my worksheet. Can you get back on me and help me with this issue. Thank you.

  • @iCalPolyPomonaVideos
    @iCalPolyPomonaVideos 7 ปีที่แล้ว

    Wonderful!!

    • @DrGrande
      @DrGrande  7 ปีที่แล้ว

      Thank you and thanks for watching -

  • @matthewdpeterson1738
    @matthewdpeterson1738 8 ปีที่แล้ว

    I used this code to create a userform and it worked perfect. I tried to modify it by changing the last activecell.offset command to use a combo box instead of a text box. I am getting a Run-time error '424' Object required. What am I doing wrong?

  • @marscastro6933
    @marscastro6933 7 ปีที่แล้ว

    What if I want the database to be on another sheet?

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

    Next entry or Provious entry ???

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

    Hi, lets say I have a database filled with data. When I click the button, is there a way for it to create the data automatically on an available cell (not filled with data)? As now I have to move my mouse cursor over an available cell for the button to enter the data correctly.

    • @NickLojevec
      @NickLojevec 7 ปีที่แล้ว

      Did you found out how to set it below previous cells?

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

      CODE FOR THE USERFROM:
      ---------------------------------------------------------------------------------------------------------------------
      Private Sub CommandButton1_Click()
      If TextBox1.Value = "" Or TextBox2.Value = "" Or TextBox3.Value = "" Then
      If MsgBox("Form is not cople. Do you want to continue?", vbQuestion + vbYesNo) vbYes Then
      Exit Sub
      End If
      End If
      If ActiveCell.Offset(1, 0).Value "" Then
      ActiveCell.End(xlDown).Offset(1, 0).Activate
      End If
      ActiveCell = TextBox1.Value
      ActiveCell.Offset(0, 1) = TextBox2.Value
      ActiveCell.Offset(0, 2) = TextBox3.Value
      ActiveCell.Offset(1, 0).Select
      Call resetFrom
      End Sub
      Sub resetFrom()
      TextBox1.Value = ""
      TextBox2.Value = ""
      TextBox3.Value = ""
      UserForm1.TextBox1.SetFocus
      End Sub
      ---------------------------------------------------------------------------------------
      THIS CODE IN YOUR SHEET CODE:
      ----------------------------------------------------------------------------------------
      Sub formulier()
      ActiveSheet.Range("B2").Activate
      UserForm1.Show
      UserForm1.TextBox1.SetFocus
      End Sub
      --------------------------------------------------------------------------------------------

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

      what if have multiple textbox?
      how can i if/or code?

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

    you are great

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

    how about deleting data on data grid?

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

    How to center the address of the user form. When creating a username and password form

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

    How to protect the sheet? while the entry form is working.

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

    How do I move to the next cell down each time I click enter button

  • @mauricelee2219
    @mauricelee2219 7 ปีที่แล้ว

    I need little favor and help from you. how I will do it. Let say I have two column A and B. I want to use vba loop in excel, I want to add A1 and A2 and the result will display in B2 and also if I will add A3 and A2 the result will display in B3 and so on as long as column A is not empty and will go down continuously. Your help greatly appreciated. Thanks

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

    I'd created a presentation/tutorial in MS PowerPoint, run it in a terminal mode, where users navigate through vba coded buttons. Now, I'm figuring a way to capture who views the PowerPoint (also, trying to capture their feedback). Could anyone please help with a vba code that could be tied to a userform in the beginning or the end of the presentation that would allow users to fill and submit the feedback/registrations? Could an embedded Excel w/VBA help with this?

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

    But I need help, My Form is not opening when i assign a macro

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

    Hi how to do the same in c#

  • @MrSupermanza
    @MrSupermanza 8 ปีที่แล้ว

    nice. thx

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

    Thank you very much sir, kindly share the code bcz the video is not clear. Hope u will respond it.

  • @wayneseymour1
    @wayneseymour1 8 ปีที่แล้ว

    Hi,
    I have a piece of code9below) that finds the last row in a data sheet and then adds values from the controls on the user form ( all controls a named Reg 1-10 except for a combo box I have named cbo name.
    'change the number for the number of controls on the userform
    cNum = 10
    'add the data to the selected worksheet
    Set nextrow = Sheets(sht).Cells(Rows.Count, 3).End(xlUp).Offset(1, 0)
    For X = 1 To cNum
    nextrow = Me.Controls("Reg" & X).Value
    how can I concantanate on the data sheet two of the controls values (cbobox and reg)onto one line in the cell ie : MaterialType with Material Description ie :Fitting - Pipe elbow

  • @ericoseseko8322
    @ericoseseko8322 8 ปีที่แล้ว

    we can we get all the codes

  • @carlosferreira7747
    @carlosferreira7747 8 ปีที่แล้ว

    I need help
    Calculate range of days using DTPicker in excel vba.

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

      Does this video help? th-cam.com/video/9QVUfoelFP0/w-d-xo.html

    • @carlosferreira7747
      @carlosferreira7747 8 ปีที่แล้ว

      Thank you very much.

  • @AngelMorales-fz8jj
    @AngelMorales-fz8jj 6 ปีที่แล้ว

    how could be with c#

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

    Thanks!

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

      You're welcome!

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

      New member

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

    awesome can i have a copy of the code please TY

  • @manotlj
    @manotlj 8 ปีที่แล้ว

    This training is good, but "fonts" too small. How possible if you enlarge percentage. Anyway, thank you for good tutorial.

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

    That's really good one....can u plss give this format I need this for my work

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

    Dear Would you write us the codes pls

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

    I want your help very badly please response

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

    Can’t see your code. It’s blurry.

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

    Great tutorial its very simple. I did not see any dim's still manage to get what im looking for :) add me up to your subscribers

  • @shoaibrabbani5774youtube
    @shoaibrabbani5774youtube 7 ปีที่แล้ว

    WHAT IS THIS

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

    छी

  • @Infoostore
    @Infoostore 7 ปีที่แล้ว

    hfv