ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   multidimensional array (https://www.excelbanter.com/excel-programming/404412-multidimensional-array.html)

ranswert

multidimensional array
 
How do I declare a multidemensional array that has both strings and integers
in it?
Thanks

Alan Beban[_2_]

multidimensional array
 
ranswert wrote:
How do I declare a multidemensional array that has both strings and integers
in it?
Thanks

Either Dim myArray or Dim myArray(), depending on whether you want a
variant variable to contain an array, or a true array.

Alan Beban

Bernie Deitrick

multidimensional array
 
Dim myArr(1 To 10, 1 To 2) As Variant

OR use two arrays

Dim myIntArr(1 To 10) As Integer
Dim myStrArr(1 To 10) As String

HTH,
Bernie
MS Excel MVP


"ranswert" wrote in message
...
How do I declare a multidemensional array that has both strings and
integers
in it?
Thanks





All times are GMT +1. The time now is 04:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com