I have long used one-dimensional Arrays to store objects (dictionaries, etc). Recently I've been using collections to store objects instead as the code seems a little bit shorter and I don't have to constantly redim and iterate by typing:
I far prefer to say:
Any reasons why collections are NOT as good as arrays for storing objects? Or are they generally speaking far better when you're not doing computations such as Application.match(var, arr, 0), which require Arrays/Ranges?
Code:
For i = lbound(arr) to ubound(arr).
I far prefer to say:
Code:
For each entry in coll
or
For i = 1 to coll.count