+ Reply to Thread
Results 1 to 4 of 4

Add items to a key dynamically in dictionary?

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Holland
    MS-Off Ver
    2016
    Posts
    23

    Add items to a key dynamically in dictionary?

    Hi guys,

    I would like to add items to a key in my dictionary if it already exists. I do not know how many items to add to one key. How should I do this, since I do not know of a way to make a class module dynamic.

    Thanks in advance!


    I have a class module:
    Please Login or Register  to view this content.
    And my module:
    Please Login or Register  to view this content.
    Last edited by max138; 11-23-2017 at 11:34 AM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Add items to a key dynamically in dictionary?

    Hi,

    Please edit your post to put code tags around the code, so that we can then assist you.

    (hint: you need to add something like a dictionary or collection as the item for each key, and then populate that.)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    05-05-2016
    Location
    Holland
    MS-Off Ver
    2016
    Posts
    23

    Re: Add items to a key dynamically in dictionary?

    My apologies. So you are hinting at a dictionary within a dictionary?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Add items to a key dynamically in dictionary?

    Yes, or a Collection.

+ 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. [SOLVED] Retrive multiple items from dictionary
    By jaryszek in forum Excel General
    Replies: 34
    Last Post: 02-24-2017, 07:52 AM
  2. Add items to dictionary - VBA Help Needed
    By mitko007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2015, 07:26 AM
  3. [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
  4. [SOLVED] Adding items to Dictionary object
    By Eduard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2013, 04:39 AM
  5. [SOLVED] Scripting Dictionary add additional items
    By thisisgerald in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-15-2012, 07:32 AM
  6. Nested dictionary items, how do you access them?
    By treyr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2010, 12:23 PM
  7. looping through items in a dictionary
    By Abe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2006, 05:45 AM

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