+ Reply to Thread
Results 1 to 7 of 7

Restrict comboBox list to relevant dictionary items

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Restrict comboBox list to relevant dictionary items

    I am beginning to understand the usefulness of dictionarys in vba and am trying to get a better understanding of the concepts.

    With code posted below earlier by Fluff13,

    https://www.excelforum.com/excel-pro...d-to-long.html

    I was trying to created "cascaded" combobox entries but cannot work out how to get the filtered relevant items to display in combobox2. Combobox2 if selected does work as required an combobox3

    The attached workbook will be self evident if someone wants to have a look at. Any help appreciated
    Attached Files Attached Files
    Last edited by nigelog; 08-29-2018 at 03:48 AM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Restrict comboBox list to relevant dictionary items

    Should this be one directional?
    i.e. Combobox2 is only filled after Combobox1 change, and Combobox3 is only filled after Combobox2 change.

    Or multi directional? Meaning change in any of the combobox will change available list in the other 2 (if not already selected).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286
    Quote Originally Posted by CK76 View Post
    Should this be one directional?
    i.e. Combobox2 is only filled after Combobox1 change, and Combobox3 is only filled after Combobox2 change.

    Or multi directional? Meaning change in any of the combobox will change available list in the other 2 (if not already selected).
    Hi

    I think one directional would be great until I get the hang of the concept...

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Restrict comboBox list to relevant dictionary items

    Then I'd do it like below.
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Restrict comboBox list to relevant dictionary items

    Another option
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,519

    Re: Restrict comboBox list to relevant dictionary items

    Try
    Please Login or Register  to view this content.

  7. #7
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Restrict comboBox list to relevant dictionary items

    Many thanks for the replies I will study the different options.. all no doubt work and will help me get to grips with dictionaries

    I will post as solved

+ 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. Scripting.Dictionary error if list is either empty or have less than 2 items
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2018, 08:03 PM
  2. [SOLVED] Looping through dictionary items where items are an array
    By strud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2014, 06:56 AM
  3. [SOLVED] Create unique list using Dictionary Object in Combobx 2 based off selection of Combobox 1
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2013, 01:27 PM
  4. Add combobox to a Word doc and populate the combobox with list of about 65 items
    By excelaron in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2012, 01:59 PM
  5. Adding items to Dynamic list to Combobox
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2009, 10:20 PM
  6. How do I refer to the items in a combobox by their number in the list of items?
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2007, 10:03 PM
  7. Using a combobox to eliminate items from a list
    By jnf40 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2006, 05:40 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