Run Method

         Example         Applies To

Runs the designated Microsoft Visual Basic macro. You can use the Run method to execute a specified procedure in Microsoft FrontPage. You can also use the Run method from within the procedure of an ActiveX control that carries out instructions that query or modify a FrontPage-based web.

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

Syntax

expression.Run(MacroName As String)

expression   An expression that returns an Application object.

MacroName   Required String. The name of the macro, add-in, or script.

Return Type

Void