The following code gives me error 9 \"subscript out of range\". I meant to declare a dynamic array so that the dimension changes as I add elements to it. Do I have to create
in your for loop use a Redim on the array like here:
For i = 0 to 3 ReDim Preserve test(i) test(i) = 3 + i Next i