Hi,
I am creating a Scripting Dictionary where items are added based on a certain criteria. The item value is not just a specific cell value but it's a combination of cell value and a vlookup. So it looks like this:
This basically results in something like: "Code: 012345 SMITH"
If VLookup returns an error, meaning that a specific code has no name assigned to it, I want items to continue adding to the dictionary but wihtout name. So I have added On Error line to handle that. This is how it currently looks:
My issue here is that it does not want to associate a new key to the error case. So it tells me that a key is already associated with an element of this collection and breaks. Is it at all possible to have diferent types of items added to the the same Dictionary? How do I do that?
Thanks in advance for any suggestion.
Eduard
Bookmarks