Thanks for any help . . .
Thanks for any help . . .
There is an Exists method for the Dictionary object that is used to see if a specified key exists. If you try adding a key that already exists, you'll get an error.
Dim d
set d = new Dictionary
if d.Exists("a") then
msgbox "already exists!"
else
d.Add "a", "Athens"
endif