To find the dimensions of your 2d array, after it is returned by the function, use
[vba]MsgBox Ubound(ArrayName,1) and Ubound(ArrayName,2)[/vba]
After that, as I said before, take also into account the Option Base setting.

To loop through the "rows" of the array use
[vba] for i = lbound(array) to ubound(array)[/vba]