All,
I am currently writing a macro in Excel and have hit a road block. I typically write code in Ruby, so I may not be approaching this problem from the right angle.
I know this post has been tagged with VBA, but I feel I need to explain my thought process in Ruby. I am attempting to create a hash table in VBA that will allow me to look up values, associated with dates, based on an identifier. In ruby I would implement this functionality with a hash, as demonstrated below.
hash = { 9385 => { '10/1/2014' => [2, 4, 6, 1, 6] } }
The values would then be accessed in this manner: hash[9385]['10/1/2014'] => [2, 4, 6, 1, 6]
The hash would have a key of 9385
which would allow me to access to the associated data of 10/1/2014
and access the array held within.
I have attempted to recreate this functionality by linking dictionary objects in VBA. However, I cannot get the dictionary objects to recreate the hierarchy that one would find with a hash in Ruby.
Is there any way I can create this type of functionality?
Thank you.