vba: This key is already associated with an element of this collection

Posted by I__ on Stack Overflow See other posts from Stack Overflow or by I__
Published on 2010-06-11T16:37:39Z Indexed on 2010/06/11 16:52 UTC
Read the original article Hit count: 162

Filed under:
|
|
Dim arr As New Collection, a
Dim aFirstArray() As Variant    

...some code

For Each a In aFirstArray
   arr.Add a, a
Next

i get this error: This key is already associated with an element of this collection

on this line : arr.Add a, a

what am i doing wrong?

© Stack Overflow or respective owner

Related posts about excel

Related posts about vba