Table of contents
TOC
Collapse the table of content
Expand the table of content

Invalid ParamArray use

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

The parameter defined as ParamArray is used incorrectly in theprocedure. This error has the following causes and solutions:

  • You attempted to pass ParamArray as anargument to another procedure that expects anarray or a ByRef Variant.

    Assign the ParamArray parameter to a Variant, and then pass the variant.

  • You attempted to use an Erase or ReDim statement with a ParamArray parameter within its procedure. 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).

© 2018 Microsoft