Populating collection with arrays

前端 未结 5 1152
忘掉有多难
忘掉有多难 2021-01-11 12:03
Dim A As Collection
Set A = New Collection

Dim Arr2(15, 5)
Arr2(1,1) = 0
\' ...

A.Add (Arr2)

How can I access the Arr2 through

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-11 12:36

    I recently had this exact issue. I got round it by populating an array with the item array in question, making the change to this array, deleting the item array from the collection and then adding the changed array to the collection. Not pretty but it worked....and I can't find another way.

提交回复
热议问题