E
Ed
I have declared an array using:
Dim Arydoc(1 To 6, 1 To 50)
I was trying to find the next open slot to write to using:
y = 3
z = UBound(Arydoc, y)
Arydoc(y, z + 1) = strAry
but the UBound generates an error "Subscript out of range". Nothing has
been written into the array yet, so I though this would have returned a "z"
of 1 (I'm using Option Base 1), and I would write to Arydoc(3,1).
What am I doing wrong?
Ed
Dim Arydoc(1 To 6, 1 To 50)
I was trying to find the next open slot to write to using:
y = 3
z = UBound(Arydoc, y)
Arydoc(y, z + 1) = strAry
but the UBound generates an error "Subscript out of range". Nothing has
been written into the array yet, so I though this would have returned a "z"
of 1 (I'm using Option Base 1), and I would write to Arydoc(3,1).
What am I doing wrong?
Ed