+ Reply to Thread
Results 1 to 6 of 6

Dependant ActiveX Combo Box list based on Data Validation List

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Dependant ActiveX Combo Box list based on Data Validation List

    Hi,

    I've been looking high and low on a fix to my problem but can't find a solution so I apologize if there's already a thread on this. Here it goes...

    I have an excel document, which I have developed into a great user form. I have taken advantage of Debra Dagleish's code to double-click and have the list auto-complete as the user starts typing - http://www.contextures.com/xlDataVal11.html. This is a feature my users cannot do without!

    I now have to modify the ActiveX combo box to build the list based on what is selected in a small data validation list (i.e. no combo box). I expect to add some additional VBA code in order to have this work. I'm good with that!

    - the data validation list is in cell B8
    - there are various combo boxes but we only need to focus on one since they all work the same way - B26

    So to re-iterate I'm looking to populate the combo box in cell B26 based on what's entered in B8 when a user double-clicks on the cell. I'm not sure if it makes a difference but all list references are on a different sheet.

    I would like to post the document privately to whoever would like to help me because of the nature of the sensitive data.

    Thanks you in advance for any help that can be provided!

    Regards,
    Suzi

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dependant ActiveX Combo Box list based on Data Validation List

    If I'm reading your query correctly... You need do no more than go back to Debra Dalgleish. See this tutorial:

    http://www.contextures.com/xlDataVal02.html

    It's probably the section on Using Dynamic Lists that you want, which uses an INDIRECT/OFFSET combination. I've worked through this before. It's easily do-able.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dependant ActiveX Combo Box list based on Data Validation List

    Hi Glenn,

    Appreciate the reply! I've reviewed your suggestion and it still doesn't seem to be working. I think with a lot of things I've read that I will most likely need to use VBA to have it work properly (but I may be over analyzing it! LOL). However, I did setup the data validation as per your suggestion from the Contextures tutorial. The formula I used in the data validation was =OFFSET(INDIRECT($B8),0,0,COUNTA(INDIRECT(B8&"Col")),1). It only returns the first item without double-clicking and when the double-click is used, nothing is returned.

    I can send you the file privately, if this makes it easier to troubleshoot.

    Regards,
    Suzi

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dependant ActiveX Combo Box list based on Data Validation List

    I've sent my email to you by PM.

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dependant ActiveX Combo Box list based on Data Validation List

    So Glenn and I have determined that the fix to my challenge will require VBA. Is there someone who can help me with a few lines of code? Again, I will send the excel document in a private message due to the sensitivity of the document.

    Regards,
    Suzi

  6. #6
    Registered User
    Join Date
    04-04-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dependant ActiveX Combo Box list based on Data Validation List

    xxxxxxxxxx
    Last edited by spalmer28; 05-12-2014 at 08:01 AM.

+ 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. How to fill an activex combobox with a data validation list?
    By Sape in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2013, 04:45 PM
  2. [SOLVED] Reset dependant validation list when the previous validation list is changed.
    By Rimmu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2012, 09:23 AM
  3. Data Validation Dependant auto update the list
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:38 PM
  4. How to use data validation for Mutiple lists dependant on one list
    By excel66 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2011, 02:21 AM
  5. Dependant Data Validation List
    By Stabilos in forum Excel General
    Replies: 1
    Last Post: 11-21-2005, 01:50 PM

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