I want to read the value of array's element based on the value of variables:
Public Array1(3, 3) As String
Public Var1 As Integer
Public Var2 As Integer
...
Var1 = 1
Var2 = 1
Array1(1, 1) = "The_string"
I would expect MsgBox Array1(Var1, Var2) to display The_string but it doesn't. I get empty message. If I try MsgBox Array1(1, 1) everything works fine. When I try things like .Value I get errors.
What am I doing wrong? How can I access those array entries based on the value of my variables?