I have a set of one-dimensional double arrays each containing thousands of members (geographic coordinates). Eg: Latitude = Array(20.356,22.369,23.568...) as Double || Longitude = Array(120.356,122.369,123.568...) as Double. When I loop through each array with WorksheetFunction.Min() / WorksheetFunction.Max() or even Application.Min() / Application.Max() to get min/max values to draw a boundary box, the results are wrong - a simple copy/paste of array values into columns A and B and MIN{A}/MAX{A} on Excel sheet (no VBA) gives completely different min/max values.
So, I wonder if VBA is limited to sorting a certain number of array values to get min/max values when the above functions are applied?!
Thanks!
So, I wonder if VBA is limited to sorting a certain number of array values to get min/max values when the above functions are applied?!
Thanks!