The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


The ParamArray keyword indicates that a procedure argument is an optional array of elements of the specified type. ParamArray can be used only on the last argument of an argument list. It allows you to pass an arbitrary number of arguments to the procedure. A ParamArray argument is always passed using ByVal.

The ParamArray keyword is used in these contexts:

Declare Statement

Function Statement

Property Statement

Sub Statement

See Also

Visual Basic Language Keywords | Parameter Arrays

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft