Show Contents / Index / Search

Editing Legacy Reflection Macros

You can edit legacy Reflection macros in the Visual Basic Editor. However, some Session methods and properties are no longer supported. For more information, see the Reflection VBA Guide (Help > VBA Guide).

To edit a legacy Reflection macro

  1. Open the settings file that contains the legacy macro.


    If you've previously saved a settings file that contains one or more legacy macros to a Reflection session document, open the session document.

  2. On the Tools ribbon, in the Macros group, click Visual Basic. If the Visual Basic button isn't visible, expand the workspace.
  3. In the Project pane, locate the project named ProjectLegacy(filename), open the appropriate module, and then edit the macro.

    Note: Edits to legacy macros must be done in the legacy project (ProjectLegacy).

  4. Save the file as a Reflection session document to retain your changes.

    Reflection identifies the macro as a "legacy macro," even though it's in a Reflection session document.

Editing Reflection Basic Macros

In Reflection, you can edit Reflection Basic scripts using the Reflection Basic Editor. However, you cannot add new scripts to these files.

To edit Reflection Basic scripts

  1. Open the Reflection Basic Editor. (To start the Reflection Basic Editor, you must associate the Run Reflection Basic Editor action with a custom control, such as a button or a keyboard shortcut.)
  2. Open the Reflection Basic script that you want to edit.
  3. Use Application for the Reflection object name.
  4. (Optional) To access information or procedures in other Reflection Basic scripts, use the $Include metacommand, the Declare statement, or the RunScript method.

Related Topics

Select Action Dialog Box