+ Reply to Thread
Results 1 to 12 of 12

Insert user form to spreadsheet via command button

  1. #1
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Insert user form to spreadsheet via command button

    Hi,

    I am completely new to VBA/Macros and I am struggling. I have created a new user form which has text & combo boxes, this is saved ready to use. The issue that I am having is making this user form available on my spreadsheet through the command button and then transferring the data onto my spreadsheet from this form.

    Is anyone able to help please?

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Re: Insert user form to spreadsheet via command button

    Hi,

    thanks for the fast response. I have now attached this file.

    I have had a look and I think I have only coded the form, the form I am using is Add_Frm. The data needs inputting into the spreadsheet across the rows, 1 row per form.

    I could not work out how to add the ID section so will need to do this manually.

    Looking at what I have done, I have realised that I am miles away from getting this working. I might need to find an excel expert to do this for me.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    Is there any reason why you did not simply add a text box for the ID on the userform?

  5. #5
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Re: Insert user form to spreadsheet via command button

    As this would still require manually inputting. I have left it out so that others can add data and admins can then populate the ID's.
    I am unsure of how to automatically generate ID's on the form.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    Would the ID's be consecutive numbers such as 1, 2, 3, 4, etc.?

  7. #7
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Re: Insert user form to spreadsheet via command button

    Yes consecutive numbers, I just cannot rely on people who would access the form to complete this.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    Try the attached file. Click the "Add New Record" button. Complete the data in the form and click "Submit". The ID will be created automatically.

  9. #9
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Re: Insert user form to spreadsheet via command button

    I cannot see any attachments.

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    Let me try again.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-13-2021
    Location
    London,England
    MS-Off Ver
    365
    Posts
    6

    Re: Insert user form to spreadsheet via command button

    IT WORKS! I cannot thank you enough, I have tried all morning to do this and failed miserably. Thanks so much!!

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,027

    Re: Insert user form to spreadsheet via command button

    You are vey welcome.

+ 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. [SOLVED] User Form Command Button
    By bb8371 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2020, 03:42 PM
  2. Disable Command Button in User form
    By Lclarke11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2015, 07:50 AM
  3. [SOLVED] Confirm Command button on user form using VBA
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2013, 05:56 AM
  4. Help to creat user form with command button
    By sheree08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 04:10 PM
  5. Cannot insert command button on spreadsheet
    By johnmac in forum Excel General
    Replies: 12
    Last Post: 09-24-2008, 08:21 AM
  6. [SOLVED] Command Button on User form for Printing
    By Anthony Slater in forum Excel General
    Replies: 2
    Last Post: 09-07-2005, 03:05 PM
  7. I can't insert a Command Button into my spreadsheet
    By Stephen238 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2005, 04:05 PM

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