Show Contents / Index / Search

Run a Macro

You can run VBA macros created in Reflection, and most macros created with legacy Reflection and EXTRA! products. You can also run macros created with the Micro Focus RUMBA and IBM Personal Communications products. However, you can only run macros in trusted locations.

Several macro-related actions (such as, Run a Reflection Workspace Macro) are available from the Select Action dialog box.

You can also run a macro by mapping an action to a control. For more information, see Add a Button to Run a Macro.

To run a macro

  1. Open the Reflection Run Macro dialog box as follows:

    If you are using this "look and feel"

    Do this...

    The Reflection button

    Reflection Ribbon

    On the Session ribbon, from the Macros group, click Run Macro.

    The Reflection button

    Reflection Browser

    On the Reflection menu, choose Tools, Macro and then Run Macro.

  2. From the Run Macro dialog box, select the macro you want to run.

    Note: Legacy macro options are available only if compatibility features are installed. In addition, to run legacy Reflection and EXTRA! macros from external files, you must specify, from the Set Up API and Macro Security dialog box, the type of legacy macro you want to run.

    Reflection Workspace Macro

    Shows macros in the active session document. Select to run macros created in Reflection or 2007 (SP1) documents.

    To run a macro in the Common project and other documents, select one of the following options from the Macros in menu:



    To show macros in


    <All Standard>

    All open projects and session documents.



    The Common project.


    Project [filename]

    The active session document only.

    Legacy Reflection Macro in This File

    Select to run legacy macros in the active document. These macros include legacy settings files (.rsf, .r2w, or .r4w), and in Reflection, session documents (.rd3x, .rd5x, .rdox) that were previously converted from settings files.

    Legacy Reflection Macro in Another File

    Select to specify and run a macro in a SharedMacro file (.rma) or a settings file (.rsf, .r2w, or .r4w).

    Legacy RB Macro

    Select to specify and run a Reflection Basic macro (.rbs).

    Legacy RCL Script

    Select to specify and run a legacy RCL script. Available only for use in VT session documents.

    Legacy EXTRA! Macro

    Select to specify and run an EXTRA! macro file (.ebm).

    RUMBA Macro

    Select to specify and run a Micro Focus RUMBA macro file (.rmc).

    IBM Personal Communications Macro

    Select to specify and run an IBM Personal Communications macro file (.mac).

Related Topics

Using Legacy Macros

Add a Button to Run a Macro