You can run code like this:
Sub Test() Dim Coll As New Collection Dim lArray(1 To 500) As Long Dim x As Long For x = 1 To 500 lArray(x) = x Coll.Add x Next End Sub
o create an array of 500 values and a collection of 500 values. If you put a break on the “end sub” you can stop the code and look at the variables in the locals window. The Array shows all 500 items, but the items in the collection only show 256. Further investigation (dumping it to an array, a range, or checking the items, etc) demonstrates that the collection contains all 500 items, it just does not seem to show them all in the locals window.
Is this a known bug in XL97? Does it still exist in other versions? Is it really an issue that needs to be worried about?
Steve