My code is something like:
To retrieve the array values, I expected to use this: MyArray(0,0) should be = "A", MyArray(0,1)="B"
But I found that I can only retieve using this:
Msgbox MyArray(0)(0)
I didn't understand why it only works with "MyArray(0)(0)" and not "MyArray(0,0)" as I see everywhere?????
Is that something wrong or not ideal in my code?
Thanks.
VBA Code:
Dim str1 as string, str2 as string, aMyArray
str1="A,B"
str2="C,D"
MyArray=(split(str1,","),split(str2,",",")
To retrieve the array values, I expected to use this: MyArray(0,0) should be = "A", MyArray(0,1)="B"
But I found that I can only retieve using this:
Msgbox MyArray(0)(0)
I didn't understand why it only works with "MyArray(0)(0)" and not "MyArray(0,0)" as I see everywhere?????
Is that something wrong or not ideal in my code?
Thanks.