multidimensional array

  • Thread starter Thread starter ranswert
  • Start date Start date
R

ranswert

How do I declare a multidemensional array that has both strings and integers
in it?
Thanks
 
ranswert said:
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top