You attempted to use an unsupported data type from a type or object library. You cannot use all variables appearing in type or object libraries, in every programming language.
To correct this error
Only use variable types recognized by VBScript.
VBScript Variables | VarType Constants