+ Reply to Thread
Results 1 to 11 of 11

How to code the submit button?

  1. #1
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    How to code the submit button?

    Hi, I am making a form in excel I have attached. The first page is dummy info and not confidential. I created a form out of the objects on sheet 3 and then had them route to sheet 4as a 'backend' before going to the main sheet (I still need to do this). But I have no idea how to code the command button to be able to re-enter information. I looked online and know I need to make it so where it outputs goes down a row but none of my tries have worked.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Let me know if it doesn't work or what I could do.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: How to code the submit button?

    .
    Study this example of a basic database using a USER FORM rather than the worksheet to enter data.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Quote Originally Posted by Logit View Post
    .
    Study this example of a basic database using a USER FORM rather than the worksheet to enter data.

    Please Login or Register  to view this content.
    Thank you so much for replying. I have attached where I tried to code a forum in vba but the radios got connected and it didn;t work, then I tried switch to what I posted in the original. Could you look at the forum I coded in vba and let me know how to fix that then? Please let me know what I should do next I am very desperate about this. Also let me know if I need to upload the code sepretley.
    Attached Files Attached Files

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: How to code the submit button?

    .
    Please Login or Register  to view this content.

    Resource URL : https://thedatalabs.org/userform-and...uttons-in-vba/

    See attachhed
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Thank you for this resource, Can you explain why my code didn't work? Do you need to send it separate?

  7. #7
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Quote Originally Posted by Logit View Post
    .





    See attachhed
    Please Login or Register  to view this content.
    Here is that section of my code.

  8. #8
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Do I need to redo the option button parts only?

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: How to code the submit button?

    you have your option button submit code on UserForm-Click event this code should be on command button Submit_Click event.
    Also look at @ Logit's submission - look at the option button properties - each set is placed in a group - this separates each set so that multiple group choices can be made.
    torachan.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: How to code the submit button?

    Give the attached a run through.
    With pre-planning it is possible to condense your code by grouping controls by adjusting their name so that you can cycle through them.
    torachan.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-29-2021
    Location
    Kansas
    MS-Off Ver
    365
    Posts
    7

    Re: How to code the submit button?

    Thank you sososo so much, you dont know how much this helped. I am going through it all and understanding the errors.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Code for to Submit Button
    By chasni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2014, 11:53 AM
  2. Code for submit button to delete row dependant on combobox value
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2014, 10:01 AM
  3. [SOLVED] Submit button - how to add command 'remove' conditional formatting in code?
    By WillGe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2012, 08:34 PM
  4. Replies: 1
    Last Post: 02-05-2012, 09:31 PM
  5. Clicking on Submit button in web page hangs up VBA code....
    By xlkugan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2012, 09:56 AM
  6. Macro submit button code submits wrong data
    By den88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2010, 05:05 PM
  7. Create a Submit button save filename as A1, submit email unc path, etc.
    By briant97 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2009, 09:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1