Closed Thread
Results 1 to 8 of 8

Create Drop Down List Within A Form

  1. #1
    Registered User
    Join Date
    06-10-2009
    Location
    Space, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Create Drop Down List Within A Form

    Hi All!

    I am working on a form on excel to allow a secretary to log hours into excel. But instead of having her type in each name, I want her to be able to choose them from a list. So for example, when you do Data>Forms, the category under "name", would be a drop down menu so you could pick a name, and enter the amount of hours worked. Any help would be great!

    Luca

  2. #2
    Forum Contributor starryknight64's Avatar
    Join Date
    09-27-2006
    Location
    Missouri
    MS-Off Ver
    2003 (Work) & 2007 (Home)
    Posts
    193

    re: Create Drop Down List Within A Form

    Try doing this:
    1. Click on the cell you're normally used to typing the name into.
    2. Goto Data-->Validation...
    3. In the "Allow" drop box, click List
    4. In the "Source" text box, type in the names (delimited by commas) you want to select from. (i.e. Sally,Joe,Billy)
    5. Make sure "In-cell dropdown" is checked.
    6. Click OK
    I hope this helps!
    starryknight64

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Springfield, Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Create Drop Down List Within A Form

    Create a Combo Box in the userform. Find the Row Source field in the Properties Window. If the data that you want to show up in the drop down list is in a named range, just put the name in Row Source. Otherwise, put the range in there. Something like A2:A38

    Hope this helps.

    Craig

  4. #4
    Registered User
    Join Date
    06-10-2009
    Location
    Space, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Create Drop Down List Within A Form

    Thanks for the quick responses! I tried using both your suggestions, but I still can't seem to get exactly what I need. I've posted a screenshot of where I want the drop down list. Hopefully you guys can get a better idea of what I'm talking about. Thanks in advance!

    Luca


    \1
    By chucas11 at 2009-06-11

  5. #5
    Forum Contributor starryknight64's Avatar
    Join Date
    09-27-2006
    Location
    Missouri
    MS-Off Ver
    2003 (Work) & 2007 (Home)
    Posts
    193

    Re: Create Drop Down List Within A Form

    Ah! ...fun times...

    Alright, just goto your Toolbox. Inside there should be a combobox. You'll just need to instantiate one of those and populate it with the names of the people you want to enter.

    Try something like this (assuming your combo box is named ComboBox1):

    Please Login or Register  to view this content.
    I hope this helps!

  6. #6
    Registered User
    Join Date
    05-28-2009
    Location
    Springfield, Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Create Drop Down List Within A Form

    If your list of employees is very long it will be faster to name the range that contains the employee names that you want to appear in the userform. Here is a screenshot that shows an example.
    \1

    Then just put the name of that range in the row source of the combobox.
    \1

    I hope these samples make sense and help you achieve your goal.
    Craig
    Last edited by highbarger; 06-11-2009 at 05:25 PM.

  7. #7
    Registered User
    Join Date
    02-10-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Create Drop Down List Within A Form

    Hi all - I successfully created a form with a combo box and used this forum to find out how to add values to it (values are: Provider, Beneficiary and other).....and when I put the range N:N in the ROW SOURCE in the properties window, I even see the 3 values in the combo box when I view the code and object in the VBA view........however when I get out of the vba and save everything and then try to run the form I don't see my 3 values. Please help.
    Thank you in advance.
    Jason

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Create Drop Down List Within A Form

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed Thread

Thread Information

Users Browsing this Thread

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

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