Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I'm trying to get my head around multi-dimensional collections. What I'm trying to do is to run through a column of data and check if each cell value is "correct" (through some other logic). If it is not correct then I want to add the value (string) to a collection and its associated cell reference. I'm assuming thus far that I need a 2 dimensional collection? Now, if further down the column I come across the same incorrect string, I want to find the existing collection item and add another cell reference to it. So (where "Bob" and "Mary" are NOT "correct"): Bob Mary Susan Bob Would therefore be added to the collection as: Item 1 ("Bob", "A1") Item 2 ("Mary", "A2") Item 1 ("Bob", "A1" & "A2") Can anyone help me get this sorted out? Thanks in advance John PS - The reason that I'm trying to use a collection rather than an array is that I'm assuming that it's easier to reference the elements by name (string)? I happy to be corrected! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Collections of Collections | Excel Programming | |||
Help with collections | Excel Programming | |||
Using Collections | Excel Programming | |||
Collections Lookups | Excel Programming | |||
Comparing Collections | Excel Programming |