How to return the number of dimensions of a (Variant) variable passed to it in VBA [duplicate] How to return the number of dimensions of a (Variant) variable passed to it in VBA [duplicate] vba vba