I don't know how to create a dynamic multidimensional Array. At present i have declared my array as Dim fArr(0 To 4, 0 To 9). it is always (0 to 4) in one dimension but other dimension (0-9) is always variable so how do i do it?.
I populate my array like this example
Select Case fTyp
Case Is = "A"
fArr(0, aRow) = j
Case Is = "B"
fArr(1, aRow) = j
Case Is = "C"
fArr(2, aRow) = j
End Select
Thanks
redim farr(4,x) as variantx is the variable that you use in your for loopfor arow = 0 to x. so what ever you have in place of x in your for loop put that same thing in for x in the redim. Just like @AlexWeber stated.Case "A"be simpler thanCase Is = "A"?