Scripting.DictionaryのKeyは型に注意
hash("111")とhash(111)は別物みたいです。
Dim hash As Object Set hash = CreateObject("Scripting.Dictionary") hash("111") = "str" 'keyが文字列 hash(111) = "num" 'key整数型 MsgBox hash("111") MsgBox hash(111)
hash("111")とhash(111)は別物みたいです。
Dim hash As Object Set hash = CreateObject("Scripting.Dictionary") hash("111") = "str" 'keyが文字列 hash(111) = "num" 'key整数型 MsgBox hash("111") MsgBox hash(111)