Application.Run Method

SharePoint Designer Developer Reference

Runs the designated Microsoft Visual Basic macro.

Syntax

expression.Run(MacroName, safeArrayOfParams)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
MacroName Required String The name of the macro, add-in, or script.
safeArrayOfParams Required Variant A ParamArray that contains the values for any parameters for which the macro requires values.

Remarks

You can use the Run method to execute a specified procedure. You can also use the Run method from within the procedure of an ActiveX control that carries out instructions to query or modify a Web site.

Note

You cannot pass parameters to a procedure using the Run method. Use the Call statement to pass parameters to a procedure.

See Also