Determining the Number of Dimensions in an Array Variable (152288)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q152288 SUMMARY
There is no built-in function to return the number of dimensions in an
array variable in Microsoft Visual Basic for Applications. The easiest way
to do this is by looping through the dimensions and using an error handler
to return the number of dimensions.
REFERENCES
For additional information about getting help with Visual Basic for
Applications, please see the following article in the Microsoft Knowledge
Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB152288 |
---|
|