Hi all,
I just cannot seem to get my logic straight. How can I find the lower and upper bounds of a 2D array? I cannot just go withAny ideas?x = LBound(2DArray) To UBound(2DArray)
Regards:
Hi all,
I just cannot seem to get my logic straight. How can I find the lower and upper bounds of a 2D array? I cannot just go withAny ideas?x = LBound(2DArray) To UBound(2DArray)
Regards:
Last edited by Mordred; 06-09-2011 at 11:22 AM.
If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.
---Keep on Coding in the Free World---
For x = LBound(2DArray, 1) To UBound(2DArray, 1) for y = LBound(2DArray, 2) To UBound(2DArray, 2)
Remember what the dormouse said
Feed your head
Thanks romperstomper for that, it hit the spot!
Try:-
Dim Ray Ray = Range("A1:F10").value MsgBox LBound(Ray, 1) 'First row MsgBox UBound(Ray, 1) 'Last Row MsgBox LBound(Ray, 2) 'First column MsgBox UBound(Ray, 2) 'Last column
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks