VBA: Difference in two ways of declaring a new object? (Trying to understand why my solution works)
Fink’s answer gets your main problem right, which is that your first loop is adding multiple references to the same instance of ‘clsMatch’ to your collection. I’ll just elaborate on why your fix works. In VBA, a line like: Dim c As New Collection doesn’t actually create a new collection. The ‘Dim’ statement is always … Read more