+ Reply to Thread
Results 1 to 13 of 13

Need Help in Form data submission into excel sheet

  1. #1
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Need Help in Form data submission into excel sheet

    Hello,

    please help me with my requirement, i am trying to create work log entry by using the calendar, when i double click on the date it will show up a user input form which has comboboxs(getting data from other sheet "Data" in the same workbook). when i click on submit it should save the data in "Comments" sheet.

    i am attaching my excel sheet, can someone take a look and suggest me the solution and the way i am approaching to this requirement.

    thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    Add this to the top of Module1:
    Please Login or Register  to view this content.
    This to your Calendar sheet module:
    Please Login or Register  to view this content.
    And this to your UserForm:
    Please Login or Register  to view this content.
    I've done that in the attached as well as made a few other minor changes, such as making your lists for the comboboxes into separate tables and referring to those in the userform initialize code which means no ugly blank spaces at the bottom of the combobox lists.
    Also made your Close and Clear buttons work.

    BSB
    Attached Files Attached Files
    Last edited by BadlySpelledBuoy; 06-09-2018 at 03:30 AM.

  3. #3
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    Hi BSB,

    Awesome, thanks alot for your quick help.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    No problem. Happy to help

    BSB

  5. #5
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    Hi BSB,

    Sorry to bother you again for the basic question, can you please explain how you tables in Details sheet.

    thanks in advance

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    They are simply single column tables, created in the same way as you made the table on the Comments sheet (Select the range then "Insert / Table").

    Then I've created 4 named ranges, one looking at each of the tables. That way you can add new values to, or delete values from, these tables and it will be automatically reflected in the combobox lists.

    If I've missed the point of your question, let me know.

    BSB

  7. #7
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    Hello BSB,

    thanks for your response, not sure where i am doing wrong, i just created tables in new spreadsheet(Sheet1), i used that sheet in form initialisation, but i am getting error, i am sure something is wrong with table creation in sheet1. please check and correct me where i am doing wrong.

    thanks in advance.
    Attached Files Attached Files

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    You're missing a step. You need to create the named ranges from those tables. To do that follow the below:
    1) Select Sheet1 A1
    2) Press Ctrl + F3
    3) Click 'New'
    4) Enter the name for the range in the 'Name' field
    5) Click in the "Refers To" field
    6) Select the cells in that table but NOT the header. The Refers To field will then show something like =TableName[ColumnHeader]
    7) Click OK
    8) Repeat the above for the remaining tables
    9) Click close
    10) Try your form again

    BSB

  9. #9
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    thanks BSB, i got it now and its working. appreciate your help.

  10. #10
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    Happy to help

    BSB

  11. #11
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    Hi BSB,

    need one more help, could you please suggest me what is the best approach to update or delete the data(other than updating data directly in comments spread sheet) which i have submitted through userform.

    thanks in advance

  12. #12
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Help in Form data submission into excel sheet

    Do you mean you wish to recall a submitted record to the userform so you can update it or delete it?

    If so then what would you use as a record identifier?

    BSB

  13. #13
    Registered User
    Join Date
    06-02-2018
    Location
    IND
    MS-Off Ver
    2010
    Posts
    18

    Re: Need Help in Form data submission into excel sheet

    sorry for delay

    yes, is it possible to retrieve the record based on user and the date?

    thanks in advance

+ 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. Need to clear a few combo box entries on form submission
    By predavore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2017, 10:42 PM
  2. Use form submission to enter data both in the form and not in the form
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 10:06 PM
  3. Creating a Word Document with a submission form that is saved as a PDF
    By avidcat in forum Word Formatting & General
    Replies: 1
    Last Post: 10-13-2012, 07:19 AM
  4. [SOLVED] Need help with Form Submission Error Command
    By cklein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2012, 12:44 PM
  5. Excel Macro on a Form - Submission to Access
    By psanghvi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2011, 07:44 AM
  6. POST data form submission to website
    By bigsmooth in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2010, 04:37 PM
  7. Import from form submission email?
    By teaker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2009, 02:44 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