Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Macro Object / RunLegacyExtraMacro Method
Specifies the full path of the macro to run.
Example
RunLegacyExtraMacro Method (Macro)
Runs an Extra! macro.
Syntax
expression.RunLegacyExtraMacro( _
   ByVal macroName As String _
) 
where expression is a variable that represents a Macro Object

Parameters

macroName
Specifies the full path of the macro to run.
Exceptions
ExceptionDescription
Thrown if the macro file does not exist.
Remarks
Assumes that the Extra! Basic runtime is installed.
Example
This example runs an Extra! macro
Sub RunExtraMacro()
    
    Dim path As String
 
    path = "C:\Users\mikebra\Documents\Micro Focus\Reflection\extra!\lword.ebm"
    ThisIbmTerminal.Macro.RunLegacyExtraMacro (path)
 
End Sub
See Also