The Variant procedures provide support for querying variant data type properties such as type and dimension and for changing the variant type.
VarChangeType
VarDimCount
VarErrorSCode
VarType
VarDimSize