I am trying to store a range into a Dictionary and then retrieve by key. I add by
dict.add key:=c.value, item:=c
where c is the variable in a For Each ... over a range. Eventually I want the "item" to be a Union of cell ranges. But in the meantime, it does not seem to be storing objects as the item.
when I am done and test IsObject in Immediate Window
isobject( dict.items(1) ) gives True, but
isobject( dict.item("IMG") ) gives False even though IMG is a valid key.
any ideas what's going wrong?
dict.add key:=c.value, item:=c
where c is the variable in a For Each ... over a range. Eventually I want the "item" to be a Union of cell ranges. But in the meantime, it does not seem to be storing objects as the item.
when I am done and test IsObject in Immediate Window
isobject( dict.items(1) ) gives True, but
isobject( dict.item("IMG") ) gives False even though IMG is a valid key.
any ideas what's going wrong?