You may find this thread interesting. Whilst it for VB not VBA, the
underlying reasoning applies.
http://groups.google.co.uk/groups?as...=2007&safe=off
Note there are other implementations of a "Collection" available that will
may be faster than VBA/VB's built in one.
NickHK
"Ray Pixley" <(E-Mail Removed)> wrote in message
news:79CB9A33-8B69-4D56-8CB2-(E-Mail Removed)...
> I recently moved from searching for data by arrays to collections, but
found
> that my macros now take 2 or 3 minute to process whereas when I was using
> arrays it took 2 or 3 seconds to do the same work. But I don't want to go
> back to arrays because indexing is always alway error prone.
>
> I could add a binary search subroutine to speed up the search, but I was
> wondering if that's already included in the Collections class. So, how
does
> Collections use the key to look up an item? Is it a simple sequential
> search? If the adds are made with the keys presented alphabetically (less
> work than debugging a binary search subroutine), will it respond better?
> Thanks.