Keys(i)やItem(i)で、i番目の要素にアクセスという情報があるが、
property let プロシージャが定義されておらず、property get プロシージャからオブジェクトが返されませんでした。
というエラーが出る場合の話。
Debug.Print dic.Keys()(0), dic.Items()(1)
とすればOK。原因は
Set dic = CreateObject("Scripting.Dictionary")
としているから。
参照設定に
Scripting.Runtime
を追加して
Set dic = New keyword
とすれば、
Debug.Print dic.Keys(0), dic.Items(1)
で利用可能。