I am using this code ;-
To find items in one range that are not in another.
It works fine on the first time of use but on the second gives an error
"This key is already associated with an element of this collection" at the line CodeList.Add Val, I
Using Scripting.Dictionary is such a neat way of getting a list of missing items that I want to hold on to it.
The error message hints that I should get rid of it at the end of this sub so the code creates it fresh again.
Or have I misunderstood what Scripting.Dictionary means.
John
Bookmarks