Call

This statement transfers control to a Sub procedure or Function procedure.

Syntax

[Call] name [argumentlist]

Parameters

name
Required. Name of the procedure to call.
argumentlist
Optional. Comma-delimited list of variables, arrays, or expressions to pass to the procedure.

Remarks

You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires parameters, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use the Call statement to call any intrinsic or user-defined function, the function's return value is discarded.