InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Macro Object / RunLegacyReflectionMacroFile Method
The name of a macro file. Include full path information if the macro file is not in the current folder.
An optional string to pass information to the macro.
Example
In This Topic
    RunLegacyReflectionMacroFile Method (Macro)
    In This Topic
    Runs the legacy Reflection macro that in the specified macro file.
    Syntax
    expression.RunLegacyReflectionMacroFile( _
       ByVal fileName As String, _
       ByVal macroData As String _
    ) 
    where expression is a variable that represents a Macro Object

    Parameters

    fileName
    The name of a macro file. Include full path information if the macro file is not in the current folder.
    macroData
    An optional string to pass information to the macro.
    Example
    This example runs an RMA macro. To run this macro the first time, copy this sample to a code module and run it from that module. After you run this macro, it is copied and saved to the TemporaryLegacyMacro module in the VBA Editor. The next time you run the macro, you'll need to run it from this Legacy Project module.
    Sub runLegacyMacro()
     
        Dim path As String
     
        path = Environ$("USERPROFILE") & "\Documents\Micro Focus\InfoConnect\RUODemo.rma"
        
        Debug.Print path
     
        ThisTerminal.Macro.RunLegacyReflectionMacroFile path, ""
        
    End Sub
    See Also