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
- 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.
- On the Tools ribbon, in the Macros group, click Visual Basic. If the Visual Basic button isn't visible, expand the workspace.
- 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).
- 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
- 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.)
- Open the Reflection Basic script that you want to edit.
- Use Application for the Reflection object name.
- (Optional) To access information or procedures in other Reflection Basic scripts, use the $Include metacommand, the Declare statement, or the RunScript method.