+ Reply to Thread
Results 1 to 13 of 13

HELP: Inserting a drop down box into a Data Entry Form

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Exclamation HELP: Inserting a drop down box into a Data Entry Form

    I have looked into a similar post which was closed by an admin for being posted in the wrong place "very helpful" and tried almost everything but cannot work this one out.

    I Want to reduce the likely hood of error when somebody enters data into a spreadsheet, i have created a Form in which they can easily type the data and then this inputs into excel, but i want to go a step further and within this form enable them to select drop down boxes instead of having to type the data directly, now i don't just want a simple list in a normal excel sheet, when they are entering the data in the FORM option within excel this is where i want the drop down box to appear, i have looked at previous posts and bits on the forum but cannot work this one out.

    I have attached some photos to show you what i am trying to do, please help.

    Below is the data entry form:

    Capture.jpg

    And Below is the list style i would like inside this data entry form:

    Capture1.jpg

    I hope someone can help.

    Thanks,

    Mike

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi mwinter

    Pictures are of little value.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    PS: this Thread is probably in the wrong Forum and may well be moved by admin...
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Firstly,

    Thank you for your response. I have attached an edited version with data removed of what i am working with.

    The idea is a user clicks the New Entry icon/button (i think this is only visible on my toolbar at the moment), which opens the data entry form, a basic macro i believe.
    They then use this to easily input the data as seen in the columns on the sheet attached and previous photos.
    On the main sheet of the spreadsheet there are some drop down lists which i have highlighted in red (the data for these lists it pulls from the second tab, not sure if this is correct way to do this), the idea is to allow the user to only select one of those pieces of data in the list to avoid typos and to enable correct filtering. The idea is also to stop them changing and or editing the main list and that they can only input the required information and or select the information from a drop down list. I would like to be able to have a drop down list option within the Data Entry form so the user simply enters for example:

    Status: New
    Stand Number: 1-00
    Hall: Hall 1
    Company Name: Test company name
    Known as: Test known as name
    Sector: (they select a sector from the drop down list only)
    Stand Type: (they select a stand type from the drop down list only)

    They click (submit) and the data gets entered: In theory.....

    etc etc, i hope this makes sense.

    I might be going about this all the wrong way, in a nutshell what i need is a way for a very basic user to input set data into an excel sheet with a combination of NEW data they will have and also predetermined options of data, i don't want them to be able to modify existing date or change or mess up the main structure of the work book.

    Your help is much appreciated.
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi mwinter

    Far as I know one cannot insert Data Validation (Drop-downs) into Excels native Data Entry Form. I'd suggest you think about using a VBA UserForm for your project. It'll do all that you require.

    If you wish to pursue this approach and need help let me know.

  5. #5
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Thank you, i thought this might be the case, i did a lot of googling and asked lots of questions before i made it here. I used Visual Basic when i was at college a long time ago now, any advice on best where to start to do this would much appreciated.

    Thanks again.

    M

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi M

    The best place to start is to just start. Build the UserForm,use ComboBoxes for the Drop Downs, TextBoxes for Static information. Build your Lists that will populate the UserForm ComboBoxes. Do this, get back to us and tell us what you wish to do...we'll help.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi M

    Play with the UserForm in the attached. The Command Buttons "Add Record" and "Other Stuff" have no Code as yet. There's a combination of Labels, TextBoxes and ComboBoxes for you to experiment with. There are Dynamic Named Ranges to populate the ComboBoxes (look at the Properties of the ComboBoxes).

    CTRL + x to open the UserForm.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Thank you very much, I'm sure I will pick it up, so essentially design the front end first and collate the back end data I need to use for the lists etc and then go from there. I will have a crack today when I get into the office. Once again thanks for your help.

    M

  9. #9
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    This is how far i have got now, please take a look.

    How do i link the outputs from the VB forms to the selected relevant line in the data sheet and also how do i then submit this and make it automatically enter the data into the corrosponding line when stand number is selected.

    For example:
    Open form, select stand number, complete date fields, submit and it enters data into the line with that stand number.
    Attached Files Attached Files
    Last edited by mwinter; 12-17-2013 at 10:59 AM. Reason: Changed Problem

  10. #10
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    as above, see above question
    Last edited by mwinter; 12-17-2013 at 11:00 AM.

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi M

    Try the Code in the attached. Notice, I've modified the UserForm Initialize Event.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-16-2013
    Location
    London, England
    MS-Off Ver
    MSO 2010
    Posts
    52

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi jaslake,

    This seems to input the data i require fine but i am having difficulty with the following:
    1. Entering one lot of data and clicking submit, then enter another lots of data and get it to enter on the next row down (at the moment NEW data overwrites the old)
    2. When the form loads again after entering one bit of data i would like it do be blank
    3. i would also like to know how to add a "next" button to the data entry form so users can enter multiple bits of data one after the other

    I hope you can assist or point me in the right direction, i have spent a lot of time on this now.

    Mike
    Attached Files Attached Files

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: HELP: Inserting a drop down box into a Data Entry Form

    Hi M

    You've changed the Structure of Data Table and the UserForm. The Code in the attached has been modified to accommodate those changes.

    I'm not sure what this means...please explain
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Drop down menu in data entry form
    By yoosed in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2013, 10:25 AM
  2. user form drop down list entry
    By jasonsim1981 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 05-06-2013, 11:59 AM
  3. Data Entry Form and drop down lists
    By AnneFr in forum Excel General
    Replies: 1
    Last Post: 10-29-2012, 08:35 AM
  4. Replies: 1
    Last Post: 04-15-2009, 02:17 PM
  5. [SOLVED] Drop-Down Menus in Data Entry Form?
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 12-29-2005, 12:25 AM

Tags for this Thread

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