_Application.Run Method

Runs a Visual Basic procedure.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function Run ( _
    MacroName As String, _
    ParamArray ByRef safeArrayOfParams As Object() _
) As Object
'Usage
Dim instance As _Application
Dim MacroName As String
Dim safeArrayOfParams As Object()
Dim returnValue As Object

returnValue = instance.Run(MacroName, _
    safeArrayOfParams)
Object Run(
    string MacroName,
    ref params Object[] safeArrayOfParams
)

Parameters

  • MacroName
    Type: System.String
    The name of the procedure to be run. The string can contain the following: a loaded presentation or add-in file name followed by an exclamation point (!), a valid module name followed by a period (.), and the procedure name. For example, the following is a valid MacroName value: "MyPres.ppt!Module1.Test".
  • safeArrayOfParams
    Type: []
    The argument to be passed to the procedure. You cannot specify an object for this argument, and you cannot use named arguments with this method. Arguments must be passed by position.

Return Value

Type: System.Object

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.PowerPoint Namespace