Table of contents
Collapse the table of content
Expand the table of content

Wrong number of dimensions

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

You must reference an array with indexes corresponding to the same number of dimensions as appear in the array'sdeclaration. This error has the following cause and solution:

  • You referred to an array with a different number of dimensions than it actually contains. For example, referring to an array as X(2,4) (an array with two dimensions) when it has been defined as Dim X(5) (an array with one), generates this error. Check the declaration of the array and, in the reference, include one index for each dimension in the declaration.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft