The parameter defined as ParamArray is used incorrectly in the procedure. This error has the following causes and solutions:
Assign the ParamArray parameter to a Variant, and then pass the variant.
Remove the Erase or ReDim. These operations can't be performed on the ParamArray parameter.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).