Hello, Using VBA in Excel 2010:
I am trying to find syntax to define a 2-dimension array by rows. For the below array
Dim matrix(1, 3) As Integer
I know I can assign each item individually such as:
matrix(0, 0) = 1
matrix(0, 1) = 2
matrix(0, 2) = 3
matrix(0, 3) = 4
I'm looking to do the same thing but easier to enter:
such as
matrix(0)=(1,2,3,4)
matrix(1)=(5,6,7,8)
Is this possible?
I am trying to find syntax to define a 2-dimension array by rows. For the below array
Dim matrix(1, 3) As Integer
I know I can assign each item individually such as:
matrix(0, 0) = 1
matrix(0, 1) = 2
matrix(0, 2) = 3
matrix(0, 3) = 4
I'm looking to do the same thing but easier to enter:
such as
matrix(0)=(1,2,3,4)
matrix(1)=(5,6,7,8)
Is this possible?