Find the size of a dictionary object in VBA

What is the easiest way in VBA to determine the size (i.e. the number of keys) in a dictionary object?

+5
source share
2 answers

Like in Scripting.Dictionary? just use the property .Count.

+19
source

For the number of keys (not elements) you should use the property .Keys, through UBound(Dictionary.Keys), since its array

+3
source

All Articles