Sub MyQuestion()
' First populate the scripting.dictionary
Dim d
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" d.Add "b", "Belgrade"
d.Add "c", "Cairo"
Debug.Print d.Item(1) ' Why does this return blank?
' How can I retreive items from this dictionary?
' I am very grateful for any tips and hints!
End Sub
' First populate the scripting.dictionary
Dim d
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" d.Add "b", "Belgrade"
d.Add "c", "Cairo"
Debug.Print d.Item(1) ' Why does this return blank?
' How can I retreive items from this dictionary?
' I am very grateful for any tips and hints!
End Sub