the idea here is that I have a table with column a wanting it to be the first part of the array and column B which is an integer, wanting it to be the length of the second part of the array.
The question here is that is it possible for an array to have different lengths for the upperbounds of its 2nd part?
This is how the table looks like
and this is my code, but it doesnt seem to work
Dim rowssheet2 As Variant
rowssheet2 = ThisWorkbook.Worksheets("Sheet2").Range("b2").End(xlDown).Row - 1
Dim arr2()
ReDim arr2(rowssheet2)
For i = 0 To rowssheet2
ReDim arr2(i, ThisWorkbook.Worksheets("Sheet2").Range("B" & 2 + i).Value)
Arr2(i, 0) = ThisWorkbook.Worksheets("Sheet2").Range("A" & 2 + i).Value
Next i
Going forward if you can answer that and if this is possible, then i am trying to iterate through the array, but the Ubound(arr2,2) is not going to be the same for all of the array