InfoConnect API Guide
Attachmate.Reflection.Emulation.Common Namespace / Macro Class / RunMacro Method / RunMacro(MacroEnumerationOption,String,String) Method
The location of the macro. MacroEnumerationOption.Document indicates that the macro resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
The name of the macro to run.
Parameter to pass to the macro.
Example


In This Topic
    RunMacro(MacroEnumerationOption,String,String) Method
    In This Topic
    Runs a macro.
    Syntax
    'Declaration
     
    
    Public Overloads Sub RunMacro( _
       ByVal macroSource As MacroEnumerationOption, _
       ByVal macroName As String, _
       ByVal macroParameter As String _
    ) 
    'Usage
     
    
    Dim instance As Macro
    Dim macroSource As MacroEnumerationOption
    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 resides in the session document's VBA project. MacroEnumerationOption.Common indicates that the macro resides in the Common VBA project.
    macroName
    The name of the macro to run.
    macroParameter
    Parameter to pass to the macro.
    Example
    private Macro mac;
                
    mac.RunMacro(MacroEnumerationOption.Document,"Module1.Macro1","Data1");
    See Also