View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Alan Beban[_2_] Alan Beban[_2_] is offline
external usenet poster
 
Posts: 783
Default Declaring 2 dimensional arrays

For the particular case you describe, I believe you can also use

Dim Item(100,2) As String

I have no view on whether that is "better" than declaring it as a
Variant type.

Alan Beban

Dan wrote:
Thanks, I thought there was a way.

Dan
"Chip Pearson" wrote in message
...

Declare the array type as Variant. It can hold any data type.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Dan" wrote in message
.. .

I want to have an array - Item(100,2) where the first column is a string
and
the second column is an integer.

Is this possible? If so how do I declare the variable.

Dan