C
Chad
I am having trouble figuring out how to return values from the first
dimension of a multidimensional array. Below is an example that I was
playing with:
************************************************************
Sub ArrayTest()
Dim Array1() As Variant
ReDim Array1(0)
Array1(0) = "Test"
ReDim Array1(0, 0)
Array1(0, 0) = "Test2"
MsgBox Array1(0)
End Sub
***********************************************************
I am trying to return the value 'Test' in the msg box but I get an Subscript
is out of range error. Can anyone help me out with the syntax of how to do
this?
Thanks,
Chad
dimension of a multidimensional array. Below is an example that I was
playing with:
************************************************************
Sub ArrayTest()
Dim Array1() As Variant
ReDim Array1(0)
Array1(0) = "Test"
ReDim Array1(0, 0)
Array1(0, 0) = "Test2"
MsgBox Array1(0)
End Sub
***********************************************************
I am trying to return the value 'Test' in the msg box but I get an Subscript
is out of range error. Can anyone help me out with the syntax of how to do
this?
Thanks,
Chad