In referring to an element of a multidimensional array, you didn't provide subscripts for all the dimensions.
Dim statement.