Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Macro Object / RunExpressMacro Method
Specifies the fully qualified file name of the macro to run.
Example
RunExpressMacro Method
Runs an Express macro.
Syntax
expression.RunExpressMacro( _
   ByVal macroName As String _
) 
where expression is a variable that represents a Macro Object

Parameters

macroName
Specifies the fully qualified file name of the macro to run.
Exceptions
ExceptionDescription
Thrown if the macro file does not exist.
Example
This sample runs an Express macro in the user data directory.
Sub RunATestExpressMacro()
 
    Dim sessionPath As String
    sessionPath = Environ$("USERPROFILE") & "\Documents\Micro Focus\Reflection\Macros\Express\" & "test.js"
    ThisIbmTerminal.Macro.RunExpressMacro (sessionPath)
    
End Sub
See Also