Possible Duplicate:
how to return the number of dimensions of a (Variant) variable passed to it in VBA
Is there any way of checking whether a VBA array is 2D or 1D? I cannot use isnumeric
on lbound(x,2)
because I get a subscript-out-of-range exception.
EDIT I also cannot use iserror(lbound(x,2))