InfoConnect for Airlines VBA Guide
RunExpressMacro Method
Specifies the fully qualified file name of the macro to run.
Runs an Express macro.
Syntax
object.RunExpressMacro( _
   ByVal macroName As String _
) 

Parameters

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