Method cannot have both a ParamArray and Optional parameters

A ParamArray argument is automatically optional, and it must be the only optional argument in the procedure declaration. All preceding arguments must be required.

Error ID: BC30046

To correct this error

  • Remove the optional arguments in the declaration.

See Also

Concepts

Parameter Arrays

Reference

ParamArray