Thank you for the reply Leith. Sorry for the delay. I had to step away from this part of the project due to other demands. Meanwhile, working with arrays has become hazy in my mind. Hopefully the edited-down block of code makes some sense. I edited the code heavily to make it somewhat more concise.
I need a two-dimensional array that can be dynamically sized, as I don't know ahead of time how many rows I need to harvest and place into the array. The array should be similar to an worksheet, that is, it would have rows and columns. The array elements should look like this: A1,1 - A1,2 - A1,3 - Etc. Then, when my code finds another worksheet row to be put into the array, it would look like this: A2,1 - A2,2 - A2,3 - Etc.
I have read that it is only allowed that the LAST dimensioned be resized. That's just nuts! Based on suggestions I read in forums, I flip-flopped the dimensions, and had nothing but headaches with that and it did not end well!
Lastly, I understand that ReDim-ing arrays is slow. But as I said, speed is not a huge issue, and besides, we'll typically be dealing with a dozen or two dozen rows total.
Bookmarks