【VBA】Dictionaryのセット|CreateObject(“Scripting.Dictionary”)
作成日:2022-12-03
更新日:2025-10-03

Dictionaryをセットする
CreateObject(“Scripting.Dictionary”)を使う
Private Sub Test()
Dim dic As Object: Set dic = CreateObject("Scripting.Dictionary")
If Not dic.Exists(xx) Then 'キー(xx)がdicに存在しなければ
dic.Add xx, yy 'キー(xx)と要素(yy)を追加する
End If
End Sub関連記事
2022-12-03
編集後記:
この記事の内容がベストではないかもしれません。
記事一覧
-

[VBA]fsoSingleton pattern 【VBA】FSO(“Scripting.FileSystemObject”)|シングルトン化して使う -

[VBA]buttonに何が登録されてるか 【VBA】ボタンに登録されているマクロ名を調べたい -

[VBA]開始と終了イベント停止と再開 【VBA高速化】開始と終了のルーチン呼び出し -

ボタンをリボンに設置 【VBA】ボタンをリボンに設定する -

vbaの色設定 【VBA】色の定数は8つ|RGB対称表 -

[VBA]get fso objectfrom path 【VBA】パスからfsoオブジェクトを取得する|fso.GetFolder/.GetFile