Hello Steve,
Here is a code routine to load the ranges you specify into a 2-D array. The code will pad the array with empty strings if the range length is less than the "rows" or second dimension of the array, and will not copy any "rows" beyond that limit.
The code prevemts any gaps by combining the individual ranges into a single contiguous range. This range is loaded into the 2-D array using loops, as Tom pointed out.
There are only 2 lines of code you need to modify to increase the number of ranges loaded. These lines are in bold type. One is the dimensions of Array_In and the other is the Variant Array called Ranges.
I realize this code is probably more complex than what you are used to. If you have any questions, you can email me LeithRoss@aol.com.
Sincerely,
Leith Ross
Bookmarks