ReDim recovery error

I am trying to redo a two-dimensional array. at the very top of my code, I have:

Dim BayQuestionArray() As Variant
Dim numberofbay As Double

I have two buttons, the first button is for initializing the size of the array:

numberofbay = 1
ReDim Preserve BayQuestionArray(numberofbay, 37)

and the second button - to increase the array

ReDim Preserve BayQuestionArray(numberofbay + 1, 37)

The second button does not work, it continues to give me the error message "Runtime" 9 "Delay out of range". Why?

+2
source share
2 answers

Preserve ( , Variant) . , , /.

+8

"redim preserve" - . , "redim preserve", . , .

"redim preserve", , . , , /, , "redim preserve" , , , "redim preserve".

, ( , ), :

http://securityintelligence.com/ibm-x-force-researcher-finds-significant-vulnerability-in-microsoft-windows/#.VIHWkSco6M8

-1

All Articles