+ Reply to Thread
Results 1 to 6 of 6

Protected Combo Box

  1. #1
    Registered User
    Join Date
    10-25-2007
    Posts
    35

    Protected Combo Box

    How do I create a combobox in a form that will display a range of options but not allow users to type in the box? In other words, I want a dropdown menu similar to one you'd see on a typical internet form.

    At the moment, the nearest I can get is to use the MatchRequired property but this still allows users to type text (albeit without letting them type something that's not in the list)

    Here's what I have at the moment:

    ComboBox1.List = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")

    Cheers,

    Owain

  2. #2
    Registered User
    Join Date
    10-25-2007
    Posts
    35

    Red face

    I'd really appreciate it if anyone knows how to sort this as the form has to be completed today.

    Thank you!!!

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello owainl,

    To prevent the user from typing in the ComboBox, set the Locked property to True. This won't affect loading it.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    10-25-2007
    Posts
    35
    Now I can't select any of the options in the combo box!

  5. #5
    Registered User
    Join Date
    10-19-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Protected Combo Box

    I'm also having the same problem here - does anyone have any advice? Using cboLocation.Locked = True prevents anything in the drop down box from being selected.

    Cheers,

    Alan

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Protected Combo Box

    Hello Alan,

    Per the forum rule below, please start a new thread and provide a reference back to this one.

    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.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to 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