A Variant can only accept assignment of data having a valid VarType. This error has the following causes and solutions:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).