+ Reply to Thread
Results 1 to 21 of 21

Make a choice in an "extensible" list

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Got it. Back in a few.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again,

    Let begin with the very first attempt of data validation ...
    Attached Files Attached Files
    HTH
    Carim


    Top Excel Links

  3. #3
    Registered User
    Join Date
    08-21-2004
    Posts
    26
    Hi,

    Thanks for answering so quickly after getting my file.

    But I have to go to bed now. Until tomorrow.

    Good night (but I don't know the time it is where you live. Where is that? In the States?)

    Bye bye

    Aloha

  4. #4
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Looks like you might have two different versions of this when you wake up.

    Made a few assumptions that might not be correct ...
    Assume that you want the list to come from cells A2:A7, and that this list will grow.

    Created a name “Fournisseur”. The RefersTo for this Name is the formula:
    =OFFSET(Fournisseurs!$A$2,0,0,COUNTA(Fournisseurs!$A:$A),1)

    Added Data Validation to range D4:D52 on each of the three Agent sheets

    Took the code that Carim suggested and changed it to be workbook-level, as noted earlier. So, all of that code is in the ThisWorkbook object’s code window.

    Seems it works. The combo box display upon double-click of a cell with data validation. But, only if the CODENAME of the sheet is like “Feuil*”

    The combobox will auto-complete and will put the result back in the cell.

    To get the combo box to disappear, you have to either click in a cell or switch to another sheet.

    Also, added code to ensure that all agent worksheets have a combo box. Right now, I am doing that at workbook_open, and it is based on the sheet having CODENAME of “Feuil*”.

    If you have no idea what I mean by CODENAME of “Feuil*”, then I’ll change that for you. I just noticed this feature and assumed it was of your design.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-21-2004
    Posts
    26
    Hello MSP...,

    Thank you very much for your precious help.

    Regards

    Aloha

  6. #6
    Registered User
    Join Date
    08-21-2004
    Posts
    26

    Another little question: Excel proposing entries

    Hello,

    What do I have to do to convince Excel to propose systematically an entry, when I begin typing the first letters of a name already existing in the list?

    Regards

    Aloha

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    To get the AutoComplete feature ...
    http://www.contextures.com/xlDataVal11.html

  8. #8
    Registered User
    Join Date
    08-21-2004
    Posts
    26
    Hello MSP*,

    It isn't possible to enter an other name than those already present in the list, while the purpose of the solution I'm looking for is to be able to select a name in the list, to enter a new name in the cell if it isn't already in the list and to get Excel adding it to the list in order to be selectable the next time I have to enter a name.

    The cells included in the validation include only the existing names.

    Regards

    Aloha

    P.S.: I'm so late to answer because I'm doing almost a dozen things at the same time.

  9. #9
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Did you look at the Autocomplete Feature proposed by Debra ...?

+ 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