Dim dic As Object Set dic = CreateObject("Scripting.Dictionary") dic.Add 1, "A" dic.Add "1", "B" Debug.Print dic(1) Debug.Print dic("1") 結果 A B