action.skip

Run a Macro

You can run Visual Basic macros created in InfoConnect and macros created with Extra!, legacy Reflection, and legacy InfoConnect products. You can also run the majority of macros created with Rumba, IBM Personal Communications, OpenText HostExplorer, and Brandon Systems\Jolly Giant QWS3270 products.

Note

Macros must be in a trusted location. New macros are saved by default to a trusted location. If you have existing macros in a non-trusted location, you can move them, or use the Specify Trusted Locations Dialog Box to add their location to list of trusted locations.

You can also run a macro by mapping an action to a control, such as a Ribbon or toolbar button. For more information, see Add a Button to Run a Macro.

To run a macro

  1. Start a session and do one of the following.

    The steps depend on your user interface mode.

    User interface mode Steps
    InfoConnect Ribbon For IBM3270 and IBM5250 terminals: On the Macros ribbon, from the Advanced group, click Run Macro.
    For all other terminals: On the Session ribbon, from the Macros group, click Run Macro.
    InfoConnect Browser On the InfoConnect menu, choose Tools, Macro, and then Run Macro.
    TouchUX Tap the Wrench icon and then under Macro, select Show Run Macro Dialog.
    Classic MDI From the Macro menu, select Macros.
  2. Select the macro you want to run:

    • If the Macros dialog box is displayed, select the macro you want to run from the list of available macros.

    • If the Run Macro dialog box is displayed, select the kind of macro you want to run. Your subsequent choices depend on which option you choose.

  3. If you can't find a Workspace macro, select Set Up VBA References in the Settings window to open the Add VBA Reference macro dialog box and then check the list for missing references (indicated by the button). After you correct the problem (usually a missing file or a disconnected network drive), close and reopen your session.

Macros dialog box

The Macros dialog box lists InfoConnect Visual Basic macros. Use the following options to specify which macros are listed:

<All Standard Projects> All open projects and session documents.
Common The Common project.
Project (filename) The active session document only.

Note

You can also use this dialog box to create new macros using the Visual Basic Editor. To do this, first enter a Macro name, then click Create.

Run Macro dialog box

The Run Macro dialog opens if you are running InfoConnect Desktop Pro for Unisys or InfoConnect Desktop Pro for Airlines, and you have installed one or more Compatibility features, which are available on the InfoConnect Setup program Features tab, under 3270/5250 | Compatibility or UNIX and OpenVMS | Compatibility.)

The list of macro types you see depends on which features you have installed and on your terminal session type.

InfoConnect Workspace Macro Opens the Macros dialog box, which you can use to select macros created using InfoConnect Desktop.
Express Macro Opens the Express Macro dialog box, where you can open Express (.js) macros.
Extra! Macro Run an Extra! macro file (.ebm).
Legacy Reflection Macro in This File (5250, 3270, and VT) Select to run legacy macros created using Reflection products.
Legacy Reflection Macro in Another File (5250, 3270, and VT) Select to specify and run a macro in a SharedMacro file (.rma) or a settings file (.rsf, .r2w, or .r4w).
Legacy RB Macro (5250, 3270, and VT) Select to specify and run a Reflection Basic macro (.rbs).
Legacy RCL Script (VT) Select to specify and run a legacy Reflection RCL script.
Rumba Macro Run a Rumba macro file (.rmc).
QWS Macro Run a Jolly Giant QWS3270 macro file (.jgs).
IBM Personal Communications Macro Run an IBM Personal Communications macro file (.mac).

More information