+ Reply to Thread
Results 1 to 8 of 8

Scripting Dictionary help

Hybrid View

  1. #1
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Scripting Dictionary help

    Sorry Will!
    I do not have Experience using collection. I do not know why do you need to use 4 keys, unless you wish to compare data in 4 columns. So far, I am only familar with 2 keys. What some people call them a parent and child. You can use the parent and child to test if an item exists and if so to do someting about it. If it is a parent , you are testing 1 column ony, but if you have a parent and child, you have two columns to test.

    For e.g, in your case, if you wish you want to test if a value exists in a cell ,then I want to do something about it (e.g, add it in your case). Remember, keys and items are pairs, so you can not use the same keys twice,,hence the reason for using the exists method to test if the key has already be used(assigned), it does, VBA overwrites the existing key.

    You can use collection, instead of dictionary, but my understanding is that you can not retrive items(values) with unique keys.
    It looks like your setting is right. You are adding values (items) in to your dictionary, but you eventually need to retirve your items(values) and keys.
    Last edited by AB33; 12-11-2012 at 07:04 AM.

+ 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