The information in this article applies to:
SUMMARY
Page 127 of the Microsoft Excel 5.0 "Visual Basic User's Guide," states
that a Microsoft Excel horizontal or vertical array is converted to a one-
dimensional Visual Basic array. This information is not entirely correct.
When you define a variable in a procedure based on a row or a column of
cells on a worksheet, the variable is converted to a two- dimensional
array.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspIn Microsoft Excel, if you dimension a row or column of cells on a worksheet as an array in a Visual Basic module, and you return a value in the array as an element of a one-dimensional array, you receive the following error message: To avoid receiving the error message above when you return a value from a variable that has been defined as a worksheet row or column, return the value as an element of a two-dimensional array as in the following example. Sample Visual Basic Macro
REFERENCESFor more information about Creating Arrays, click the Search button in the Visual Basic Reference help and type: arrays Additional query words: 1.00 8.00 97 err msg docerr
Keywords : kbprg kbdta KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |