+ Reply to Thread
Results 1 to 5 of 5

ComboBox.list = Array Validation problem

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    San Jose
    MS-Off Ver
    Excel 2007
    Posts
    83

    ComboBox.list = Array Validation problem

    Searched for this couldn't find anything that helped.

    I have a Combobox that I provide an array for:

    Please Login or Register  to view this content.
    Problem is, with that Value prompt, some users would be tempted to just hit the number 4 on the keyboard rather than use the combobox. This causes kack. The first ComboBox is the source control for a second ComboBox.

    I've toyed with the option of just changing from the combobox but if there is a way to make this work without that...

    In an IDEAL world, if the user types the number 1-5 it would automatically set the correct choice, if they typed anything else a message box would pop up. it already works fine if they read my mind and only do what was expected of them in the first place.

    Not sure if this can be done, or if more info is needed

    Thanks

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

    Re: ComboBox.list = Array Validation problem

    I can't follow what you are trying to say.

    You don't need to set a value for the combobox.

    If you want a pop up message why not use Data validation's list option instead?
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-25-2009
    Location
    San Jose
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: ComboBox.list = Array Validation problem

    I tried using List style and it would kack later on when I'm juggling values for navigation.

    When the above choice is made it passes on the value to :
    Please Login or Register  to view this content.
    When List Style is selected it locks at the Revaluing of .LevelSelector.Value = "L5"

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

    Re: ComboBox.list = Array Validation problem

    That's not Data validation. Can you attach an example workbook?

  5. #5
    Registered User
    Join Date
    03-25-2009
    Location
    San Jose
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: ComboBox.list = Array Validation problem

    Sure thing.

    here it is, a bit more than a sample, ATM I'm too brain fried to creatively prune out some of the bits, but I think its clean enough to find what you need.

    as you launch the Form, I'd LIKE to have it accept a Number typed in (1-5) but I realize that's probably not an option.

    I'm still new to VBA so the Validation thing is still "majic" to me.

    I currently understand about 85% of the code in my project but even tho I'm getting better at fixing the stuff that goes "bump", this bit has be fuddled.
    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)

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