Is it possible to put a dynamically calculated array in a VBA dictionary?
What I have now is:
![]()
Dim data As Object Dim Size As Integer 'for example it is actually a dynamically calculated number Set data = CreateObject("scripting.dictionary") Size = 3 If Not (data.exists(5)) Then data.Add (5), Array(Size) End If data(5)(1) = 1 'gives a subscript out of range error
Bookmarks