Having real problems creating and populating one.
I want to read in the content of a spreadsheet into an array. I count each row incrementing a variable (intRow) until I reach the end of the sheet. I know there will be 4 columns.
Problem is, that I cannot then use the intRow variable to declare the array (ie Dim MyArray(intRow,3). I get a Expected Literal Constant error.
How can I use intRow (or some derivative of it) to declare the array?
I want to read in the content of a spreadsheet into an array. I count each row incrementing a variable (intRow) until I reach the end of the sheet. I know there will be 4 columns.
Problem is, that I cannot then use the intRow variable to declare the array (ie Dim MyArray(intRow,3). I get a Expected Literal Constant error.
How can I use intRow (or some derivative of it) to declare the array?