D
Dave Neve
Hi
I'm trying to understand 'array' and the code below baffles me.
I would expect the answer to be '10' but it is '20'
Surely it should be 10????
Can sm please explain this?
Thanks
Sub Disarray()
Dim A As Variant, B As Variant
A = Array(10, 20, 30)
B = A(1)
MsgBox (B)
End Sub
I'm trying to understand 'array' and the code below baffles me.
I would expect the answer to be '10' but it is '20'
Surely it should be 10????
Can sm please explain this?
Thanks
Sub Disarray()
Dim A As Variant, B As Variant
A = Array(10, 20, 30)
B = A(1)
MsgBox (B)
End Sub