WD2000: Can't Assign an Array to Explicitly Declared Array Variable (212619)
The information in this article applies to:
This article was previously published under Q212619 SUMMARY
The Visual Basic for Applications language contains properties whose values can be returned into an array. To use this functionality, you must declare your array as type "variant." Attempting to declare the array as any other type results in the following error message:
Compile error:
Expected array
REFERENCESFor additional information about getting help with Visual Basic for Applications, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
212623 WD2000: Macro Programming Resources
226118 OFF2000: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kberrmsg kbhowto kbProgramming KB212619 |
---|
|