Reflection .NET API
Attachmate.Reflection.Emulation.OpenSystems Assembly / Attachmate.Reflection.Emulation.OpenSystems Namespace / IMacro Interface / RunMacro Method / RunMacro(ProjectOption,String,String) Method
The location of the macro. MacroEnumerationOption.Document indicates that the macro is located in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro is located in the Common VBA project.
The name of the macro to run.
An optional parameter to pass to the macro.


In This Topic
    RunMacro(ProjectOption,String,String) Method
    In This Topic
    Runs a macro.
    Syntax
    'Declaration
     
    
    Overloads Sub RunMacro( _
       ByVal macroSource As ProjectOption, _
       ByVal macroName As String, _
       ByVal macroParameter As String _
    ) 
    'Usage
     
    
    Dim instance As IMacro
    Dim macroSource As ProjectOption
    Dim macroName As String
    Dim macroParameter As String
     
    instance.RunMacro(macroSource, macroName, macroParameter)

    Parameters

    macroSource
    The location of the macro. MacroEnumerationOption.Document indicates that the macro is located in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro is located in the Common VBA project.
    macroName
    The name of the macro to run.
    macroParameter
    An optional parameter to pass to the macro.
    See Also