Vba Collection Key List

[Solved] Vba Collection Key List | Vb - Code Explorer | yomemimo.com
Question : vba collection key list

Answered by : vastemonde

' Use a Dictionary instead of a Collection
Dim dict As Dictionary
Set dict = New Dictionary
dict.Add "key1", "value1"
dict.Add "key2", "value2"
Dim key As Variant
For Each key In dict.Keys Debug.Print "Key: " & key, "Value: " & dict.Item(key)
Next

Source : https://stackoverflow.com/questions/5702362/vba-collection-list-of-keys | Last Update : Sun, 07 Feb 21

Answers related to vba collection key list

Code Explorer Popular Question For Vb