I am having a strange issue when using .index with an array in vba.
I am using ado to obtain a recordset from a closed workbook. This is a function that I have defined that returns an array to the main sub. The array is then transposed into another array to restructure into the row, col format. Everything works fine up until i try to utilize the .Index function.
When i try to use the Application.Index function, it never returns a value from the transposed array.
What I have done to work around this is to copy the transposed array into a worksheet, then copy the range values into yet another array. When doing this, I am able to fully utilize the .Index function.
So the index function will NOT work unless I copy the data to a worksheet, then back into an array.
Does this sound right?
Bookmarks