Hi
I need to get the elements of 2D array
I'm looking for an output :
x1 = 6
x2 = 4
Regards
~M
I need to get the elements of 2D array
Code:
Sub ttt()
Dim a(2, 6) As Integer
a(1, 1) = 10
a(1, 2) = 20
a(1, 3) = 30
a(1, 4) = 40
a(1, 5) = 50
a(1, 6) = 60
a(2, 1) = 10
a(2, 2) = 20
a(2, 3) = 30
a(2, 4) = 40
x = UBound(a, 1) - LBound(a, 1)
y = UBound(a, 2) - LBound(a, 2)
MsgBox y & " : " & x ' // With this I'm getting 6 : 2
End Sub
I'm looking for an output :
x1 = 6
x2 = 4
Regards
~M